From 02d2d8927d2fd3815a9f3c5c767aa71a8a33408e Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 3 Oct 2017 17:48:55 -0700 Subject: 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 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 581a926106..01517c5514 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2017-10-03 H.J. Lu + + * 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 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't -- cgit 1.4.1