From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Clifton To: Philip Blundell Cc: Alexandre Oliva , Mark Mitchell , binutils@sources.redhat.com, gcc@gcc.gnu.org Subject: Re: Wrong dynamic-linker used on Solaris 7/x86 Date: Tue, 22 May 2001 07:00:00 -0000 Message-id: References: <20010520102530Z.mitchell@codesourcery.com> X-SW-Source: 2001-05/msg01081.html Hi Phil, > >So, we have one vote for and one against it. Who can make a > >decision? > > Nick's the binutils head honcho; I guess he ought to decide. Who's also been asleep at the wheel for the last week. Or at least it feel that way. Sorry, guys, it is end-of-quarter hell over here at the moment. Anyway - my opinion is that we ought to do both things, ie support -I as an alias for --dynamic-linker and set the default dynamic linker for Solaris environments to be ld.so.1. That way GNU ld can be used as a drop in replacement for Solaris ld, and I think that this is a worthy goal. So here is Alexandre's patch supplemented with a patch to lexsup.c to add -I. I have applied this patch. Cheers Nick 2001-05-22 Alexandre Oliva * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh. (ELF_INTERPRETER_NAME): Define it. * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use it. * configure.tgt (targ_emul, targ_extra_emuls) [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso as primary, elf_i386 as extra. * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o. (eelf_i386_ldso.c): New rule. * Makefile.in: Rebuilt. 2001-05-22 Nick Clifton * lexsup.c (ld_options): Allow -I to be an alias for --dynamic-linker. This is for Solaris compatibility. * ld.texinfo: Document that -I can be used. * ld.1: Regenerate.