This is the mail archive of the binutils@sources.redhat.com 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]

Re: Wrong dynamic-linker used on Solaris 7/x86


On Mon, May 21, 2001 at 07:50:05AM +0100, Philip Blundell wrote:
> >When we fixed gcc/binutils a few years ago, "gcc -v" no longer worked
> >under Linux due to the assembler change. We fixed gcc and patched the
> >specs file for the existing gcc. What is wrong with that? I doubt there
> >are more Solaris/x86 using gcc today than Linux/x86 5 years ago.
> 
> Well, it's a slightly different situation: Solaris has a vendor-provided 
> linker, and if we want GNU ld to be a drop-in replacement for that linker it 
> has to use the same defaults.  Especially as Solaris ld doesn't apparently 
> accept the `--dynamic-linker' option, and GNU ld doesn't currently accept -I.

Then add -I to ld. We had the similar problem with as when we moved
to ELF. This is in gcc 2.7.2.3:

#undef ASM_SPEC
#define ASM_SPEC \
  "%{V} %{v:%{!V:-V}} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}"

This is in gcc today:

#define ASM_SPEC \
  "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}"

People who use my new Linux binutils and gcc 2.7.2.3 have to patch
the gcc source or the specs file. Otherwise, "gcc -V" won't work.


H.J.


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