aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-05-14 03:47:47 -0700
committerH.J. Lu <hjl.tools@gmail.com>2018-05-14 03:48:02 -0700
commit9bc935ef3380a2d471b9447e2bf8e61297654e2f (patch)
tree7a3dcd50c0392966eceef1ab218a8650d071d603 /bfd/ChangeLog
parent85bd2d83f8a3d813718418df11c2bee2a50c1274 (diff)
downloadgdb-9bc935ef3380a2d471b9447e2bf8e61297654e2f.zip
gdb-9bc935ef3380a2d471b9447e2bf8e61297654e2f.tar.gz
gdb-9bc935ef3380a2d471b9447e2bf8e61297654e2f.tar.bz2
x86: Mark __bss_start, _end and _edata locally defined
__bss_start, _end and _edata are defined by linker to mark regions within executables and shared libraries. All references within executables should be locally resolved. This patch doesn't change how their references within shared libraries are resolved. bfd/ PR ld/23162 * elfxx-x86.c (elf_x86_linker_defined): New function. (_bfd_x86_elf_link_check_relocs): Use it to mark __bss_start, _end and _edata locally defined within executables. ld/ PR ld/23162 * testsuite/ld-elf/pr23162.map: New file. * testsuite/ld-elf/pr23162.rd: Likewise. * testsuite/ld-elf/pr23162a.c: Likewise. * testsuite/ld-elf/pr23162b.c: Likewise. * testsuite/ld-elf/shared.exp: Run PR ld/23162 tests.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r--bfd/ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index d8b3773..10b9679 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/23162
+ * elfxx-x86.c (elf_x86_linker_defined): New function.
+ (_bfd_x86_elf_link_check_relocs): Use it to mark __bss_start,
+ _end and _edata locally defined within executables.
+
2018-05-12 Alan Modra <amodra@gmail.com>
PR 20659