This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: latest snapshot fails to build libobjc.so on Solaris


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]