binutils-gdb/ld/testsuite/ld-s390/pr26918-1.s
H.J. Lu cbf097d7b0 s390x: Set .got sh_entsize only if .got size > 0
bfd/

	PR ld/26918
	* elf64-s390.c (elf_s390_finish_dynamic_sections): Set .got
	sh_entsize only if .got size > 0.

ld:

	PR ld/26918
	* testsuite/ld-s390/pr26918-1.d: New file.
	* testsuite/ld-s390/pr26918-1.s: Likewise.
	* testsuite/ld-s390/s390.exp: Run all *.d tests.
2020-11-23 05:13:55 -08:00

20 lines
254 B
ArmAsm

.machinemode zarch
.machine "z900"
.text
.align 8
.globl start
.type start, @function
start:
larl %r1,foo@GOTENT
lg %r1,0(%r1)
lgf %r2,0(%r1)
br %r14
.size start, .-start
.globl foo
.bss
.align 4
.type foo, @object
.size foo, 4
foo:
.zero 4