[Patch, AARCH64] gc-sections tests for got and tls relocs

Venkataramanan Kumar venkataramanan.kumar@linaro.org
Tue Mar 26 11:25:00 GMT 2013


Hi Maintainers

Please find the below patch, that adds gc tests for got and TLS relocs.

There is a change in the gc sweep hook when handling local got refcounts.
I was using generic "elf_local_got_refcounts" the way other ports use.

But while testing I found that I need to  use "elf64_aarch64_locals"
to get local symbols and got reference count in aarch64.

Along with that change "make check" passes with new tests written for
aarch64-none-linux-gnu.

The change log is given below.

bfd/ChangeLog

2013-03-26  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>

         * elf64-aarch64.c (elf64_aarch64_gc_sweep_hook): Use
        elf64_aarch64_locals to get local GOT reference counts.

ld/testsuite/ChangeLog

2013-03-26  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
        * ld-aarch64/gc-relocs-tlsle.s: New gc section test.
        * ld-aarch64/gc-relocs-tlsle.s: Likewise
        * ld-aarch64/gc-relocs-tlsgd.s: Likewise
        * ld-aarch64/gc-relocs-tlsdesc.s: Likewise
        * ld-aarch64/gc-relocs-312.s: Likewise
        * ld-aarch64/gc-relocs-311.s: Likewise
        * ld-aarch64/gc-relocs-309.s: Likewise
        * ld-aarch64/gc-start.s: Likewise
        * ld-aarch64/gc-got-relocs.d: Update expected objdump
        * ld-aarch64/gc-tls-relocs.d: Likewise
        * ld-aarch64/aarch64-elf.exp: add test

Ok for trunk?  If it is ok, some one please commit for me.

regards,
Venkat.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: got-tls-gc-tests.patch
Type: application/octet-stream
Size: 11295 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20130326/12113a5c/attachment.obj>


More information about the Binutils mailing list