https://bugs.llvm.org/show_bug.cgi?id=44991
Fangrui Song <i...@maskray.me> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
CC| |i...@maskray.me
Status|NEW |RESOLVED
--- Comment #2 from Fangrui Song <i...@maskray.me> ---
Hi Joe, the diagnostic appears to be correct. You are linking in -pie or
-shared mode. It is incorrect to reference a symbol relative to the image base
from a read-only section. The address of that symbol can vary at runtime (due
to ASLR).
I asked whether we can have R_MIPS_PC64. One comment is that
https://sourceware.org/pipermail/binutils/2020-February/110231.html MIPS does
not need it. I guess that can still cause problems to relocation scanning,
though. If you are interested at MIPS support, maybe you can provide more
opinions?
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs