Wrong dynamic-linker used on Solaris 7/x86
Nick Clifton
nickc@cambridge.redhat.com
Tue May 22 07:00:00 GMT 2001
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 <aoliva@redhat.com>
* 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 <nickc@redhat.com>
* 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.
More information about the Gcc
mailing list