Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jun 2002 18:50:42 -0700
From:      "Jjim Bodkins" <bodkins@prologic.com>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Linking with Solaris .o's
Message-ID:  <001101c21d7d$0bd06740$3e7cb5d1@notebook8>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_000E_01C21D42.5F655A40
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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


------=_NextPart_000_000E_01C21D42.5F655A40
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; I did an experiment =
between Solaris=20
(Intel) 8 and FreeBSD 4.4. I created a .o on Solaris, moved it to =
FreeBSD and=20
linked it with a native FreeBSD .o and it produced an executable that =
ran. (I=20
did this as a test. I have a number of libraries in .a form that I would =
like to=20
use on FreeBSD).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; When I attempt to link =
against the=20
Solaris .a's (they are libraries from a non Sun source. Not standard =
libs) I get=20
this ...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>/usr/libexec/elf/ld: section =
.stab.exclstr=20
[00000000 -&gt; 0000002e] overlaps secti<BR>on .stab.excl [00000000 =
-&gt;=20
0000005f]<BR>/usr/libexec/elf/ld: section .stab.index [00000000 -&gt; =
0000011f]=20
overlaps section<BR>&nbsp;.stab.excl [00000000 -&gt;=20
0000005f]<BR>/usr/libexec/elf/ld: section .stab.indexstr [00000000 -&gt; =

000000fd] overlaps sect<BR>ion .stab.excl [00000000 -&gt;=20
0000005f]<BR>/usr/libexec/elf/ld: ck: Not enough room for program =
headers=20
(allocated 6, need<BR>7)<BR>/usr/libexec/elf/ld: final link failed: Bad=20
value<BR>*** Error code 1</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; I'm not sure what this =
means exactly.=20
My test was in C. For all I know, the code in the libs were generated in =

assembler. Dont know. Any ideas?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; Another option that I have =
is to use=20
the same libs from Linux. However, that would require an additional =
purchase and=20
I'm not sure that Linux libs can be used in a linking process with =
native=20
FreeBSD code. Can they or are they only usefull in support of Linux=20
binaries?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; Any help would be=20
appreciated.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Jim</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_000E_01C21D42.5F655A40--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001101c21d7d$0bd06740$3e7cb5d1>