Alex Bennee
2007-03-16 16:18:43 UTC
Hi,
One of the toolchains we use at work is a Solaris/x86 target hosted on
Linux/x86. One of my colleagues hacked up binutils 2.16.1 to enable it
to link a Solaris binary.
I'm in the process of porting them 2.17 and would very much like to
submit the patches upstream if I can do them neatly. However my autoconf
magic is a little rusty.
In the BFD the linker is specified in elf64-x86-64.c as "/lib/ld64.so.1"
when on Solaris is needs to be in "/lib/amd64/ld.so.1". Are there any
config variables passed to the C code that I can use to #ifdef this?
I had a brief scan through config.h but couldn't see anything helpful.
Regards,
One of the toolchains we use at work is a Solaris/x86 target hosted on
Linux/x86. One of my colleagues hacked up binutils 2.16.1 to enable it
to link a Solaris binary.
I'm in the process of porting them 2.17 and would very much like to
submit the patches upstream if I can do them neatly. However my autoconf
magic is a little rusty.
In the BFD the linker is specified in elf64-x86-64.c as "/lib/ld64.so.1"
when on Solaris is needs to be in "/lib/amd64/ld.so.1". Are there any
config variables passed to the C code that I can use to #ifdef this?
I had a brief scan through config.h but couldn't see anything helpful.
Regards,
--
Alex, homepage: http://www.bennee.com/~alex/
Mustgo, n.: Any item of food that has been sitting in the refrigerator
so long it has become a science project. -- Sniglets, "Rich Hall &
Friends"
Alex, homepage: http://www.bennee.com/~alex/
Mustgo, n.: Any item of food that has been sitting in the refrigerator
so long it has become a science project. -- Sniglets, "Rich Hall &
Friends"