[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 08:22:43 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)
>
It happens because R_X86_64_32 reloc is used against _Jv_RegisterClasses, which is
NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses
That looks to be different issue. It is not a function and I do not see dynamic relocation for it in bfd output,
I can try to investigate it tomorrow.
https://reviews.llvm.org/D41541
More information about the llvm-commits
mailing list