This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: possible regression


]   This is actually a bug in the gnu linker that is exposed by the newer
]   version of egcs.
]   The linker in binutils-2.9.1 does not handle R_SPARC_WPLT30 relocs
]   against local symbols.

>My understanding is that this will only happen if you use the Solaris
>native assembler with the GNU linker.  If you use the GNU assembler
>and the GNU linker, it should work fine (at least with 2.9.1).  Please
>let me know if that is not accurate.

Well, I believe the native assembler and the native linker were
used.  /usr/local/egcs/sparc-sun-solaris2.5.1/bin was empty
(egcs-snap was configured with --prefix=/usr/local/egcs).
egcs-1.0.3 and binutils built with egcs-1.0.3 were also installed
(with --prefix=/usr/local).  But /usr/ccs/bin was searched before
/usr/local/bin.

I suspect binutils has some problem.  This might have nothing to do
with the above, but let me tell you what I experienced.

If I remember correctly...

[1]
egcs-more-than-a-month-ago:
	--prefix=/usr/local/egcs --with-gnu-as --with-gnu-ld

binutils-2.9.1:
	--prefix=/usr/local/egcs, built with egcs-1.0.3
	(the assembler and the linker used to build the egcs-1.0.3
	are unknown)

egcs' `make check' exited with error

[2]
egcs-more-than-a-month-ago:
	--prefix=/usr/local/egcs --with-gnu-as --with-gnu-ld

binutils-2.9.1:
	--prefix=/usr/local/egcs, built with egcs-more-than-a-month-ago
	(probably the egcs used to build the binutils was built
	without GNU as and ld, but I might have also used the other 
	alternative, i.e. egcs-built-WITH-binutils, to build the
	binutils, probably after succeeding in [2] with
	egcs-built-WITHOUT-binutils.  Confusing.)

egcs' `make check' succeeded (with some unexpected failures, of course)


Probably the GNU linker triggered the error in [1].  I tried
--with-gnu-as only and --with-gnu-ld only too, and concluded so.

I don't know if these are the case with the latest snapshot, but
likely.


What you are suggesting is
(0) No binutils for egcs-snapshot installed.
(1) Install egcs-snapshot without --with-gnu-as and --with-gnu-ld.
(2) Build binutils using the egcs-snapshot just installed.
    [Q] Does `make check' succeed here?  (I guess not.)
(3) Reinstall egcs-snapshot with --with-gnu-as and --with-gnu-ld.
(4) Build binutils using the egcs-snapshot just installed.
    `make check' must succeed now.
Is this correct?

Anyway, really confusing.
The tool used to build another tool should be built using what?
sigh.

--
Shuhei


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