This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: latest snapshot fails to build libobjc.so on Solaris
- To: Joe Buck <jbuck at racerx dot synopsys dot com>
- Subject: Re: latest snapshot fails to build libobjc.so on Solaris
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 21 Nov 2000 17:26:01 -0200
- Cc: hjl at valinux dot com (H . J . Lu), gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <200011211859.KAA02748@racerx.synopsys.com>
On Nov 21, 2000, Joe Buck <jbuck@racerx.synopsys.com> wrote:
>> > libobjc.so builds OK on i686-pc-linux-gnu, which is ELF. (Now
>> > that doesn't mean that something isn't broken).
>>
>> It doesn't mean much since the GNU linker, which i686-pc-linux-gnu
>> uses, may handle many things which the Solaris linker refuses to
>> at the price of reduced performance/feature.
> Ah, so you're saying that non-PIC code is being emitted even though PIC
> is specified, and this makes some linkers barf but not others?
Yep. Solaris' linker is called with -z text when creating a shared
library (unless -mimpure-text is given). This causes the linker to
complain when it encounters relocations in read-only sections.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me