diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2009-01-03 04:53:47 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2009-01-03 04:53:47 +0000 |
commit | f5c9470c5878b590b187d2c530e7a5e3bb71c98e (patch) | |
tree | acec40ea2f88caadbb6040b8f6a9b2f643b8f4bf | |
parent | 0bdf8d408feea806ed4f377bae0cfb60915d51fa (diff) | |
download | gdb-f5c9470c5878b590b187d2c530e7a5e3bb71c98e.zip gdb-f5c9470c5878b590b187d2c530e7a5e3bb71c98e.tar.gz gdb-f5c9470c5878b590b187d2c530e7a5e3bb71c98e.tar.bz2 |
* ld-cris/tls-js1.d: New test.
-rw-r--r-- | ld/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-js1.d | 32 |
2 files changed, 36 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 30be1ed..74e8154 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2009-01-03 Hans-Peter Nilsson <hp@axis.com> + + * ld-cris/tls-js1.d: New test. + 2009-01-02 H.J. Lu <hongjiu.lu@intel.com> PR ld/9679 diff --git a/ld/testsuite/ld-cris/tls-js1.d b/ld/testsuite/ld-cris/tls-js1.d new file mode 100644 index 0000000..2a9223e --- /dev/null +++ b/ld/testsuite/ld-cris/tls-js1.d @@ -0,0 +1,32 @@ +#source: dsov32-1.s +#source: tls-ld-4.s +#source: dsov32-2.s +#source: expdyn1.s +#source: tls-hx.s +#source: dso-1.s +#as: --pic --no-underscore --em=criself --march=v32 +#ld: --shared -m crislinux +#readelf: -a + +# DSO with a R_CRIS_16_DTPREL and a R_CRIS_32_PLT_PCREL. The .got.plt +# byte index (a) and .rela.plt item index (b) are in sync as b=a/4-3 +# *except* when there's a R_CRIS_DTPMOD, because while the relocated +# contents goes in .got.plt, the relocation goes in .rela.got, not +# .rela.plt. And, it'd cover 8 bytes in .got.plt, not 4 bytes. +# Making sure .rela.plt has the right contents; no R_CRIS_NONE entries. + +#... + .* .got[ ]+PROGBITS[ ]+0+2348 0+348 0+20 04 WA 0 0 4 +#... +Relocation section '\.rela\.dyn' at offset 0x20c contains 2 entries: + Offset Info Type Sym\.Value Sym\. Name \+ Addend +00002354 0000001e R_CRIS_DTPMOD 00000000 +00002364 0000050a R_CRIS_GLOB_DAT 00002368 expobj \+ 0 + +Relocation section '\.rela\.plt' at offset 0x224 contains 2 entries: + Offset Info Type Sym\.Value Sym\. Name \+ Addend +0000235c 0000030b R_CRIS_JUMP_SLOT 00000296 dsofn4 \+ 0 +00002360 00000c0b R_CRIS_JUMP_SLOT 000002ae dsofn \+ 0 + +There are no unwind sections in this file. +#pass |