diff options
author | Nick Clifton <nickc@redhat.com> | 2013-04-03 14:21:18 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-04-03 14:21:18 +0000 |
commit | cb8af559c12b9a85acb429fed4d59e858574a43c (patch) | |
tree | a16f6f77f0ca2c24cb5dbed5492bc9d1be678f3b /ld/testsuite/ld-aarch64/gc-tls-relocs.d | |
parent | 203f0950a35c87f17016045f1cd5a0460b445532 (diff) | |
download | gdb-cb8af559c12b9a85acb429fed4d59e858574a43c.zip gdb-cb8af559c12b9a85acb429fed4d59e858574a43c.tar.gz gdb-cb8af559c12b9a85acb429fed4d59e858574a43c.tar.bz2 |
* elf64-aarch64.c (elf64_aarch64_gc_sweep_hook): Use
elf64_aarch64_locals to get local GOT reference counts.
* 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
Diffstat (limited to 'ld/testsuite/ld-aarch64/gc-tls-relocs.d')
-rw-r--r-- | ld/testsuite/ld-aarch64/gc-tls-relocs.d | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/gc-tls-relocs.d b/ld/testsuite/ld-aarch64/gc-tls-relocs.d new file mode 100644 index 0000000..50d23e5 --- /dev/null +++ b/ld/testsuite/ld-aarch64/gc-tls-relocs.d @@ -0,0 +1,34 @@ +#source: gc-start.s +#source: gc-relocs-tlsgd.s +#source: gc-relocs-tlsdesc.s +#source: gc-relocs-tlsie.s +#source: gc-relocs-tlsle.s +#ld: --gc-sections -T aarch64.ld +#objdump: -s -t -d + +# Executable with tls related relocs against global and local symbol gced. +# After gc-section removal we are cheking that symbols does not exit +# got section is empty and text section contains only start function. + +.*: file format elf64-littleaarch64 + +SYMBOL TABLE: +0+8000 l d \.text 0+ \.text +0+9000 l d \.got 0+ \.got +0+0000 l df \*ABS\* 0+ .* +0+0000 l \*UND\* 0+ __tls_get_addr +0+0000 l df \*ABS\* 0+ +0+9000 l O \.got 0+ _GLOBAL_OFFSET_TABLE_ +0+8000 g \.text 0+ _start + +Contents of section .text: + 8000 1f2003d5 .* +Contents of section .got: + 9000 0+ 0+ 0+ 0+ .* + 9010 0+ 0+ .* + +Disassembly of section .text: + +0+8000 \<_start>: + 8000: d503201f nop + |