mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
a63cc5f70c
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.
12 lines
159 B
ArmAsm
12 lines
159 B
ArmAsm
.text
|
|
.globl foo
|
|
foo:
|
|
lgrl %r1,bar@GOTENT
|
|
lg %r1,bar@GOT(%r12)
|
|
lrl %r1,bar@GOTENT
|
|
l %r1,bar@GOT(%r12)
|
|
ly %r1,bar@GOT(%r12)
|
|
|
|
.globl bar
|
|
bar: .long 0x123
|