about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-03 17:48:55 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-03 17:49:09 -0700
commit02d2d8927d2fd3815a9f3c5c767aa71a8a33408e (patch)
tree19af6bf30672b23680686d3a57ff2148381021e9 /ChangeLog
parent0c609d19e33f0ee70dbe2fba04d2ea75d3dcbd14 (diff)
downloadglibc-02d2d8927d2fd3815a9f3c5c767aa71a8a33408e.tar.gz
glibc-02d2d8927d2fd3815a9f3c5c767aa71a8a33408e.tar.xz
glibc-02d2d8927d2fd3815a9f3c5c767aa71a8a33408e.zip
Revert x86: Allow undefined _DYNAMIC in static executable
This code is used in non-PIE static executable and static PIE.  It checks
if _DYNAMIC is undefined before using it to compute load address.  But
not all targets can convert access _DYNAMIC via GOT, which needs dynamic
relocation, to PC-relative at link-time.

	* sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
	allow undefined _DYNAMIC in PIE libc.a.
	* sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
	Likewse.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 581a926106..01517c5514 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
 
+	* sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
+	allow undefined _DYNAMIC in PIE libc.a.
+	* sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
+	Likewse.
+
+2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
+
 	* sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
 	check _DYNAMIC.