aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-12-02 14:48:50 +1030
committerAlan Modra <amodra@gmail.com>2017-12-04 23:05:01 +1030
commit826c3f1edc2f9da4594aed86b57a7b447a46016d (patch)
tree9d5ac346fab24f8cd38372bfe32cf00d1b6457e0 /ld
parente21126b7b381a9083e6670ca9adaad6060e376d1 (diff)
downloadfsf-binutils-gdb-826c3f1edc2f9da4594aed86b57a7b447a46016d.zip
fsf-binutils-gdb-826c3f1edc2f9da4594aed86b57a7b447a46016d.tar.gz
fsf-binutils-gdb-826c3f1edc2f9da4594aed86b57a7b447a46016d.tar.bz2
x86 map file textrel
bfd/ * elfxx-x86.c (readonly_dynrelocs): New function. (maybe_set_textrel): New function. Always prints via minfo and correct "readonly" to "read-only" in warning message., replacing.. (_bfd_x86_elf_readonly_dynrelocs): ..this. (_bfd_x86_elf_size_dynamic_sections): Correct "readonly" to "read-only" in warning message. Formatting. (_bfd_x86_elf_adjust_dynamic_symbol): Use readonly_dynrelocs. * linker.c (bfd_link_hash_traverse): Comment typo fix. ld/ * testsuite/ld-i386/pr17935-1.d: Adjust expected error. * testsuite/ld-i386/pr17935-2.d: Likewise. * testsuite/ld-x86-64/pr17935-1.d: Likewise. * testsuite/ld-x86-64/pr17935-2.d: Likewise.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog7
-rw-r--r--ld/testsuite/ld-i386/pr17935-1.d2
-rw-r--r--ld/testsuite/ld-i386/pr17935-2.d2
-rw-r--r--ld/testsuite/ld-x86-64/pr17935-1.d2
-rw-r--r--ld/testsuite/ld-x86-64/pr17935-2.d2
5 files changed, 11 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index c970625..6b0e026 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,12 @@
2017-12-04 Alan Modra <amodra@gmail.com>
+ * testsuite/ld-i386/pr17935-1.d: Adjust expected error.
+ * testsuite/ld-i386/pr17935-2.d: Likewise.
+ * testsuite/ld-x86-64/pr17935-1.d: Likewise.
+ * testsuite/ld-x86-64/pr17935-2.d: Likewise.
+
+2017-12-04 Alan Modra <amodra@gmail.com>
+
* testsuite/ld-powerpc/powerpc.exp (ppceabitests): Add -a32 -mbig
to assembler options, and -melf32ppc to linker options. Always
run these tests.
diff --git a/ld/testsuite/ld-i386/pr17935-1.d b/ld/testsuite/ld-i386/pr17935-1.d
index 5303ea2..e73da59 100644
--- a/ld/testsuite/ld-i386/pr17935-1.d
+++ b/ld/testsuite/ld-i386/pr17935-1.d
@@ -1,3 +1,3 @@
# as: --32
# ld: -m elf_i386 -shared -z text
-# error: warning: relocation against `foo' in readonly section `.text'
+# error: warning: relocation against `foo' in read-only section `.text'
diff --git a/ld/testsuite/ld-i386/pr17935-2.d b/ld/testsuite/ld-i386/pr17935-2.d
index c1080f4..2b1046e 100644
--- a/ld/testsuite/ld-i386/pr17935-2.d
+++ b/ld/testsuite/ld-i386/pr17935-2.d
@@ -1,3 +1,3 @@
# as: --32
# ld: -m elf_i386 -shared -z text
-# error: warning: relocation in readonly section `.text'
+# error: warning: relocation in read-only section `.text'
diff --git a/ld/testsuite/ld-x86-64/pr17935-1.d b/ld/testsuite/ld-x86-64/pr17935-1.d
index 5734eab..b3329bd 100644
--- a/ld/testsuite/ld-x86-64/pr17935-1.d
+++ b/ld/testsuite/ld-x86-64/pr17935-1.d
@@ -1,3 +1,3 @@
# as: --64
# ld: -m elf_x86_64 -shared -z text
-# error: warning: relocation against `foo' in readonly section `.text'
+# error: warning: relocation against `foo' in read-only section `.text'
diff --git a/ld/testsuite/ld-x86-64/pr17935-2.d b/ld/testsuite/ld-x86-64/pr17935-2.d
index 81df652..c15a79b 100644
--- a/ld/testsuite/ld-x86-64/pr17935-2.d
+++ b/ld/testsuite/ld-x86-64/pr17935-2.d
@@ -1,3 +1,3 @@
# as: --64
# ld: -m elf_x86_64 -shared -z text
-# error: warning: relocation in readonly section `.text'
+# error: warning: relocation in read-only section `.text'