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: Wrong dynamic-linker used on Solaris 7/x86


On May 20, 2001, Mark Mitchell <mark@codesourcery.com> wrote:

>>>>>> "Philip" == Philip Blundell <philb@gnu.org> writes:
>>> correctly even with older versions of GNU ld.  Another option
>>> is to implement -I as an alias to --dynamic-linker on Solaris;
>>> this would allow gcc to use the same LINK_SPEC, but would
>>> require a fixed GNU ld.  The plus of this option is that one
>>> could switch between GNU ld and Solaris ld with -B switches, as
>>> it is possible today.

Philip> I think this is the way to go.

> Me too -- but I also think that you should fix GNU ld to work like the
> Solaris linker by default.  I'm not sure why automatic detection
> wouldn't work -- doesn't Solaris set an OS flag in the ELF header?

Dunno.  I had thought at first of creating a new BFD vector, such as
elf32-i386-sol2.c, but now I realize this wouldn't necessary, as long
as there is some way to tell, in elf_i386_size_dynamic_sections(),
whether ELFOSABI_SOLARIS is set somewhere, assuming this would be the
way to detect we're linking for Solaris.  If that's the case, where
would this `somewhere' be?

-- 
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]