]> sourceware.org Git - glibc.git/commit
Run vismain only if linker supports protected data symbol
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 4 Aug 2017 18:47:08 +0000 (11:47 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 4 Aug 2017 18:47:23 +0000 (11:47 -0700)
commit3093fd5e5d418b91411aa9b061850b8773433cf7
tree9500b921620218982b920a280e42c0a3f44ce9a1
parentd2cf37c0a2a375cf2fde69f1afbcc49e45368fc4
Run vismain only if linker supports protected data symbol

Gold doesn't support protected data symbol:

configure:5672: checking linker support for protected data symbol
configure:5682: gcc -fuse-ld=gold -nostdlib -nostartfiles -fno-stack-protector -fPIC -shared conftest.c -o conftest.so
configure:5685: $? = 0
configure:5692: gcc -fuse-ld=gold -nostdlib -nostartfiles -fno-stack-protector conftest.c -o conftest conftest.so
/usr/local/bin/ld.gold: error: /tmp/ccXWoofs.o: cannot make copy relocation for protected symbol 'bar', defined in conftest.so
collect2: error: ld returned 1 exit status

Run vismain only if linker supports protected data symbol.

* elf/Makefile (tests): Add vismain only if
$(have-protected-data) == yes.
(tests-pie): Likewise.
ChangeLog
elf/Makefile
This page took 0.043553 seconds and 5 git commands to generate.