From ef4ad06fe5a615af9550d74b1b6d546b9dc0a64d Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 27 Feb 2015 13:56:44 -0800 Subject: Compile vismain with -fPIE and link with -pie Protocted symbol in shared library can only be accessed from PIE or shared library. Linker in binutils 2.26 enforces it. We must compile vismain with -fPIE and link it with -pie. [BZ #17711] * elf/Makefile (tests): Add vismain only if PIE is enabled. (tests-pie): Add vismain. (CFLAGS-vismain.c): New. * elf/vismain.c: Add comments for PIE requirement. --- ChangeLog | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 8e6b5f16f0..1ac660957e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2015-02-27 H.J. Lu + + [BZ #17711] + * elf/Makefile (tests): Add vismain only if PIE is enabled. + (tests-pie): Add vismain. + (CFLAGS-vismain.c): New. + * elf/vismain.c: Add comments for PIE requirement. + 2015-02-27 Joseph Myers [BZ #18046] -- cgit v1.2.3