From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H . J . Lu" To: Philip Blundell Cc: Alexandre Oliva , Mark Mitchell , binutils@sources.redhat.com, gcc@gcc.gnu.org Subject: Re: Wrong dynamic-linker used on Solaris 7/x86 Date: Mon, 21 May 2001 08:54:00 -0000 Message-id: <20010521085436.B16556@lucon.org> References: <20010520102530Z.mitchell@codesourcery.com> <20010520164437.B30458@lucon.org> X-SW-Source: 2001-05/msg00996.html 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.