]> git.ipfire.org Git - thirdparty/glibc.git/commit - ChangeLog
Revert x86: Allow undefined _DYNAMIC in static executable
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Oct 2017 00:48:55 +0000 (17:48 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Oct 2017 00:49:09 +0000 (17:49 -0700)
commit02d2d8927d2fd3815a9f3c5c767aa71a8a33408e
tree19af6bf30672b23680686d3a57ff2148381021e9
parent0c609d19e33f0ee70dbe2fba04d2ea75d3dcbd14
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.
ChangeLog
sysdeps/i386/dl-machine.h
sysdeps/x86_64/dl-machine.h