This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld-linux

Ok a little more detail.
I would like to use another dynamic loader,

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/

The macros in there are somewhat ambiguous (for good reason).
I have done the following change but it is not showing up

# 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/${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}\`` '"$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 Blietz wrote:

I would like to change the loader that an executable

Which system do I have, as far as ld/
is concerned?

Redhat 9, x86, gcc3.2.3, binutils 2.14

-- Brian Blietz

"There are 10 types of people in the world...
Those who understand binary, and those who don't."

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