bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: binutils-2.15 - work around for gcc optimization problem on sparc -s


From: Nick Clifton
Subject: Re: binutils-2.15 - work around for gcc optimization problem on sparc -sun-solaris2.7
Date: Tue, 13 Jul 2004 14:03:52 +0100
User-agent: Mozilla Thunderbird 0.7 (X11/20040615)

Hi Kelvin,

Attached test.c is code extracted from elflink.c to demonstrate the problem.
You can use attached comp.sh to compile the test program. The test program
must be compile inside the bfd directory of the binutils-2.15 package. The
embedded data is the data extract from the gcc-3.4 build which caused
ld-2.15 to crash. BTW, the test program also shows a possible work around of
the problem, i.e. instead of doing the calculation, simply comparing the
values inside elf_sort_symbol. (You may also use the attached diff file to
patch elflink.c.) The patch seems working fine or at least survived the gcc
build cycle.

Thanks very much for discovering this problem and producing a workaround. I have applied the patch you suggested, together with this ChangeLog entry:

bfd/ChangeLog
2004-07-13  Kelvin Lee  <address@hidden>

        * elflink.c (elf_sort_symbol): Restructure code to avoid bug in
        Solairs hosted versions of gcc.

Cheers
  Nick






reply via email to

[Prev in Thread] Current Thread [Next in Thread]