Regressions with "PATCH: PR ld/13177: garbage collector retains zombie references to external libraries"

H.J. Lu hjl.tools@gmail.com
Fri Sep 16 16:24:00 GMT 2011


On Thu, Sep 15, 2011 at 11:21 PM, Hans-Peter Nilsson
<hans-peter.nilsson@axis.com> wrote:
>> Date: Wed, 14 Sep 2011 12:14:38 -0700
>> From: "H.J. Lu" <hongjiu.lu@intel.com>
>
>> 2011-09-14  H.J. Lu  <hongjiu.lu@intel.com>
>>
>>       PR ld/13177
>>       * elflink.c (elf_gc_sweep_symbol): Also hide symbols without PLT
>>       nor GOT references.
>>
>> ld/testsuite/
>>
>> 2011-09-14  H.J. Lu  <hongjiu.lu@intel.com>
>>
>>       PR ld/13177
>>       * ld-elf/pr13177.d: New.
>>       * ld-elf/pr13177.s: Likewise.
>
> Caused regressions for cris-elf and cris-axis-linux-gnu:
>
> cris-elf:
> Running /tmp/hpautotest-binutils/bsrc/src/ld/testsuite/ld-cris/cris.exp ...
> FAIL: ld-cris/pic-gc-72
>
> ld.log:
> Executing on host: sh -c {/tmp/hpautotest-binutils/cris-axis-elf/ld/../binutils/objdump  -s -t -R -p -T tmpdir/dump > tmpdir/dump.out 2>ld.tmp}  /dev/null  (timeout = 300)
> exited abnormally with 0, output:BFD: tmpdir/dump(.rela.dyn): relocation 0 has invalid symbol index 16777215
>
> ...

The problem is cris backend doesn't use plt.refcount nor got.refcount.

-- 
H.J.



More information about the Binutils mailing list