From owner-freebsd-emulation Thu Jun 27 15:53:14 2002 Delivered-To: freebsd-emulation@freebsd.org Received: from ns.prologic.com (ns.prologic.com [209.181.124.2]) by hub.freebsd.org (Postfix) with ESMTP id D91BE37B405 for ; Thu, 27 Jun 2002 15:53:10 -0700 (PDT) Received: from notebook8 (notebook-8.prologic.com [209.181.124.62]) by ns.prologic.com (8.9.2/8.9.2) with SMTP id QAA74704; Thu, 27 Jun 2002 16:02:33 -0700 (MST) (envelope-from bodkins@prologic.com) Message-ID: <002101c21e2d$7dd703c0$3e7cb5d1@notebook8> From: "Jjim Bodkins" To: Cc: Subject: Linking with Solaris .o's Date: Thu, 27 Jun 2002 15:53:45 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I did an experiment between Solaris (Intel) 8 and FreeBSD 4.4. I created a .o on Solaris, moved it to FreeBSD and linked it with a native FreeBSD .o and it produced an executable that ran. (I did this as a test. I have a number of libraries in .a form that I would like to use on FreeBSD). When I attempt to link against the Solaris .a's (they are libraries from a non Sun source. Not standard libs) I get this ... /usr/libexec/elf/ld: section .stab.exclstr [00000000 -> 0000002e] overlaps secti on .stab.excl [00000000 -> 0000005f] /usr/libexec/elf/ld: section .stab.index [00000000 -> 0000011f] overlaps section .stab.excl [00000000 -> 0000005f] /usr/libexec/elf/ld: section .stab.indexstr [00000000 -> 000000fd] overlaps sect ion .stab.excl [00000000 -> 0000005f] /usr/libexec/elf/ld: ck: Not enough room for program headers (allocated 6, need 7) /usr/libexec/elf/ld: final link failed: Bad value *** Error code 1 I'm not sure what this means exactly. My test was in C. For all I know, the code in the libs were generated in assembler. Dont know. Any ideas? Another option that I have is to use the same libs from Linux. However, that would require an additional purchase and I'm not sure that Linux libs can be used in a linking process with native FreeBSD code. Can they or are they only usefull in support of Linux binaries? Any help would be appreciated. Jim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message