ld-linux
Brian Blietz
bblietz@iastate.edu
Sat Jan 31 18:59:00 GMT 2004
Ok a little more detail.
I would like to use another dynamic loader, ld-linux-new.so.2
What all do I need to modify, to make this show up in the elf header?
I am guessing all I need to modify is ld/configure.host
The macros in there are somewhat ambiguous (for good reason).
I have done the following change but it is not showing up
Original:
# HOSTING_CRT0='-dynamic-linker `egrep "ld[^ ]*\.so" \`${CC}
--print-file-name=specs\` | sed -e "s,.*-dynamic-linker[ ][
]*\(.*/ld[^ ]*\.so..\).*,\1,"` `${CC} --print-file-name=crt1.o` `${CC}
--print-file-name=crti.o` `if [ -f ../gcc/crtbegin.o ]; then echo
../gcc/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`'
Changed to:
HOSTING_CRT0='-dynamic-linker /lib/ld-linux-new.so.2${CC}
--print-file-name=specs\` | sed -e "s,.*-dynamic-linker[ ][
]*\(.*/ld[^ ]*\.so..\).*,\1,"` `${CC} --print-file-name=crt1.o` `${CC}
--print-file-name=crti.o` `if [ -f ../gcc/crtbegin.o ]; then echo
../gcc/crtbegin.o; else ${CC} --print-file-name=crtbegin.o; fi`'
HOSTING_LIBS='-L`dirname \`${CC} --print-file-name=libc.so\``
'"$HOSTING_LIBS"' `if [ -f ../gcc/crtend.o ]; then echo ../gcc/crtend.o;
else ${CC} --print-file-name=crtend.o; fi` `${CC} --print-file-name=crtn.o`'
I have done a make distclean, reconfigure, make, make install.
This does not seem to do the trick.
I am also using the -B option in the link line of the makefile.
Brian
Brian Blietz wrote:
> I would like to change the loader that an executable
> uses.
>
> Which system do I have, as far as ld/configure.host
> is concerned?
>
> Redhat 9, x86, gcc3.2.3, binutils 2.14
>
--
Brian Blietz
bblietz@iastate.edu
"There are 10 types of people in the world...
Those who understand binary, and those who don't."
More information about the Binutils
mailing list