s390x: Set .got sh_entsize only if .got size > 0
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 23 Nov 2020 13:06:51 +0000 (05:06 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 23 Nov 2020 13:13:55 +0000 (05:13 -0800)
commitcbf097d7b024fad33d13cc43ff0d35f2e0b11898
treea9ec0a3b9187e473c607a1d54c817d21ed27d262
parente1b9725dfaf7a993fa06ee71ae72e6ded7470f1b
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.
bfd/ChangeLog
bfd/elf64-s390.c
ld/ChangeLog
ld/testsuite/ld-s390/pr26918-1.d [new file with mode: 0644]
ld/testsuite/ld-s390/pr26918-1.s [new file with mode: 0644]
ld/testsuite/ld-s390/s390.exp