[PATCH] D41541: [ELF] - Allow using PLT relocations when "-z notext" is given.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 22 07:55:31 PST 2017
grimar added a comment.
In https://reviews.llvm.org/D41541#963178, @emaste wrote:
> I can confirm this fixes the reduced test case, but the 'hello world' test on FreeBSD still fails, now with:
>
> /home/emaste/src/llvm/build/bin/ld.lld: error: relocation R_X86_64_32 cannot be used against shared object; recompile with -fPIC
> >>> defined in usr/lib/crtbegin.o
> >>> referenced by /usr/home/emaste/src/freebsd/contrib/gcc/crtstuff.c
> >>> usr/lib/crtbegin.o:(frame_dummy)
>
I guess 'frame_dummy' is not of STT_FUNC type probably. I'll check the initial testcase (sorry that did not do that before posing patch).
https://reviews.llvm.org/D41541
More information about the llvm-commits
mailing list