Compile vismain with -fPIE and link with -pie
commitef4ad06fe5a615af9550d74b1b6d546b9dc0a64d
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 27 Feb 2015 21:56:44 +0000 (27 13:56 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 27 Feb 2015 22:13:28 +0000 (27 14:13 -0800)
treeec538cb7181efe801c012b94bea4d9c257d77a07
parent2ca725c594e0c186d928dc0823be7d8b5976112c
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
NEWS
elf/Makefile
elf/vismain.c