aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorMaamoun Tarsha <maamountk@hotmail.com>2019-01-14 16:00:14 +0000
committerNick Clifton <nickc@redhat.com>2019-01-14 16:00:14 +0000
commit5a12586d44fa8d5dfc74cbca4f2f36a273a16335 (patch)
tree40fc567191c2d5360e179e6da0c86553a657ab02 /bfd
parentd63f2be21bfbedb8a83b5c5f317896bf2bb19a95 (diff)
downloadgdb-5a12586d44fa8d5dfc74cbca4f2f36a273a16335.zip
gdb-5a12586d44fa8d5dfc74cbca4f2f36a273a16335.tar.gz
gdb-5a12586d44fa8d5dfc74cbca4f2f36a273a16335.tar.bz2
Add support to GNU ld to separate got related plt entries from normal ones in order to be able to switch the non-plt got entries to read-only after startup, conforming to revised Linux for zSeries ABI.
PR 20133 * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define. * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define. * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output. * testsuite/ld-s390/tlsbin.dd: Likewise. * testsuite/ld-s390/tlsbin.rd: Likewise. * testsuite/ld-s390/tlsbin.sd: Likewise. * testsuite/ld-s390/tlsbin_64.dd: Likewise. * testsuite/ld-s390/tlsbin_64.rd: Likewise. * testsuite/ld-s390/tlsbin_64.sd: Likewise. * testsuite/ld-s390/tlspic.dd: Likewise. * testsuite/ld-s390/tlspic.rd: Likewise. * testsuite/ld-s390/tlspic.sd: Likewise. * testsuite/ld-s390/tlspic_64.dd: Likewise. * testsuite/ld-s390/tlspic_64.rd: Likewise. * testsuite/ld-s390/tlspic_64.sd: Likewise. * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-s390.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index f394db2..89aef20 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
+
+ PR 20133
+ * elf32-s390.c (allocate_dynrelocs): Update comment.
+
2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
* warning.m4: Adjust egrep pattern for non-GNU compilers.
diff --git a/bfd/elf32-s390.c b/bfd/elf32-s390.c
index 49a301f..1bf8cc2 100644
--- a/bfd/elf32-s390.c
+++ b/bfd/elf32-s390.c
@@ -1666,8 +1666,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void * inf)
/* Make room for this entry. */
s->size += PLT_ENTRY_SIZE;
- /* We also need to make an entry in the .got.plt section, which
- will be placed in the .got section by the linker script. */
+ /* We also need to make an entry in the .got.plt section. */
htab->elf.sgotplt->size += GOT_ENTRY_SIZE;
/* We also need to make an entry in the .rela.plt section. */