diff options
author | Andreas Krebbel <Andreas.Krebbel@de.ibm.com> | 2013-07-05 09:51:00 +0000 |
---|---|---|
committer | Andreas Krebbel <Andreas.Krebbel@de.ibm.com> | 2013-07-05 09:51:00 +0000 |
commit | a63cc5f70ca64f41f5144ac330bc7978e584eed3 (patch) | |
tree | 86e015ed6ddf87602fd28daf5574a4582899dc64 /ld/testsuite/ld-s390/s390.exp | |
parent | fb798c50b2c896195fb94af229dfbcc52babdfea (diff) | |
download | gdb-a63cc5f70ca64f41f5144ac330bc7978e584eed3.zip gdb-a63cc5f70ca64f41f5144ac330bc7978e584eed3.tar.gz gdb-a63cc5f70ca64f41f5144ac330bc7978e584eed3.tar.bz2 |
2013-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
bfd/
* elf32-s390.c: Rewrite GOT accesses using larl if possible.
* elf64-s390.c: Likewise.
ld/testsuite/
* ld-s390/gotreloc-1.s: New file.
* ld-s390/gotreloc-1.ver: New file.
* ld-s390/gotreloc_31-1.dd: New file.
* ld-s390/gotreloc_64-1.dd: New file.
* ld-s390/s390.exp: Run the new tests. Run 31 bit tests also on 64
bit.
Diffstat (limited to 'ld/testsuite/ld-s390/s390.exp')
-rw-r--r-- | ld/testsuite/ld-s390/s390.exp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ld-s390/s390.exp b/ld/testsuite/ld-s390/s390.exp index 34c5b33..1ac11c7 100644 --- a/ld/testsuite/ld-s390/s390.exp +++ b/ld/testsuite/ld-s390/s390.exp @@ -48,6 +48,11 @@ set s390tests { {{readelf -Ssrl tlsbin.rd} {objdump -dzrj.text tlsbin.dd} {objdump -sj.got tlsbin.sd} {objdump -sj.tdata tlsbin.td}} "tlsbin"} + {"GOT: symbol address load from got to larl" + "-shared -melf_s390 --version-script=gotreloc-1.ver" "" + "-m31" {gotreloc-1.s} + {{objdump -dzrj.text gotreloc_31-1.dd}} + "gotreloc_31-1"} } set s390xtests { @@ -64,6 +69,11 @@ set s390xtests { {{readelf -WSsrl tlsbin_64.rd} {objdump -dzrj.text tlsbin_64.dd} {objdump -sj.got tlsbin_64.sd} {objdump -sj.tdata tlsbin_64.td}} "tlsbin_64"} + {"GOT: symbol address load from got to larl" + "-shared -melf64_s390 --version-script=gotreloc-1.ver" "" + "-m64" {gotreloc-1.s} + {{objdump -dzrj.text gotreloc_64-1.dd}} + "gotreloc_64-1"} } if [istarget "s390-*-*"] { @@ -71,5 +81,6 @@ if [istarget "s390-*-*"] { } if [istarget "s390x-*-*"] { + run_ld_link_tests $s390tests run_ld_link_tests $s390xtests } |