From 4088d8dd29ce0629eeaa7cceca02414c85d98e05 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 28 Sep 2017 15:28:00 -0700 Subject: x86: Allow undefined _DYNAMIC in static executable When --enable-static-pie is used to build static PIE, _DYNAMIC is used to compute the load address of static PIE. But _DYNAMIC is undefined when creating static executable. This patch makes _DYNAMIC weak in PIE libc.a so that it can be undefined. * sysdeps/i386/dl-machine.h (elf_machine_load_address): 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 e4919f2f38..1171915738 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2017-09-28 H.J. Lu + + * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow + undefined _DYNAMIC in PIE libc.a. + * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): + Likewse. + 2017-09-28 Wilco Dijkstra * sysdeps/alpha/fpu/bits/mathinline.h: Delete file. -- cgit v1.2.3