diff options
author | Cupertino Miranda <cmiranda@synopsys.com> | 2016-07-12 16:31:40 +0200 |
---|---|---|
committer | Cupertino Miranda <cmiranda@synopsys.com> | 2016-08-26 12:09:17 +0200 |
commit | 4dd72ffdfe254fec30fd5eab0c5fd4445df73529 (patch) | |
tree | f1d8dfa7da9ff84146c0ca39d9c6167d9c8c13ab /ld/testsuite/ld-arc | |
parent | a87aa054a67e23faeead400bdf902a1eddb242a4 (diff) | |
download | gdb-4dd72ffdfe254fec30fd5eab0c5fd4445df73529.zip gdb-4dd72ffdfe254fec30fd5eab0c5fd4445df73529.tar.gz gdb-4dd72ffdfe254fec30fd5eab0c5fd4445df73529.tar.bz2 |
Content for TLS_IE_GOT not written to .got.
When no dynamic relocation was generated the .got content would not be
updated for the TLS_IE_GOT relocation addresses.
bfd/ChangeLog:
Cupertino Miranda <cmiranda@synopsys.com>
* arc-got.h (relocate_fix_got_relocs_for_got_info): Fixed addresses in
debug comments. Fixed address in .got related to TLS_IE_GOT dynamic
relocation.
ld/ChangeLog:
Cupertino Miranda <cmiranda@synopsys.com>
* testsuite/ld-arc/tls_ie-01.s: Added to verify associated fix.
* testsuite/ld-arc/tls_ie-01.d: Likewise
Diffstat (limited to 'ld/testsuite/ld-arc')
-rw-r--r-- | ld/testsuite/ld-arc/tls_ie-01.d | 9 | ||||
-rw-r--r-- | ld/testsuite/ld-arc/tls_ie-01.s | 10 |
2 files changed, 19 insertions, 0 deletions
diff --git a/ld/testsuite/ld-arc/tls_ie-01.d b/ld/testsuite/ld-arc/tls_ie-01.d new file mode 100644 index 0000000..8d53ef5 --- /dev/null +++ b/ld/testsuite/ld-arc/tls_ie-01.d @@ -0,0 +1,9 @@ +#source: tls_ie-01.s +#as: -mcpu=arc700 +#ld: +#objdump: -s -j .got + +[^:]+: file format elf32-littlearc + +Contents of section \.got: + [0-9a-f]+ 00000000 04000000 .+ diff --git a/ld/testsuite/ld-arc/tls_ie-01.s b/ld/testsuite/ld-arc/tls_ie-01.s new file mode 100644 index 0000000..74f40ed --- /dev/null +++ b/ld/testsuite/ld-arc/tls_ie-01.s @@ -0,0 +1,10 @@ + .tls_common foo,4,4 + .tls_common bar,4,4 + + .text + .align 4 + + .global __start +__start: + ld r14, [pcl, @foo@tlsie] + ld r15, [pcl, @bar@tlsie] |