[llvm-bugs] [Bug 39049] Avoid relocations in position independent code by storing offset of program counter
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jun 25 23:01:42 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=39049
Fangrui Song <i at maskray.me> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WORKSFORME
CC| |i at maskray.me
Status|NEW |RESOLVED
--- Comment #2 from Fangrui Song <i at maskray.me> ---
> and a simple addition/subtraction with a constant
You may mean relocations relative to section symbols. They are represented as
something like .text + 0x20 . I think these are already leveraged by
compilers.. (llvm-mc is better at using local symbols than GNU as)
> a constant could be used instead of a relocation table that slows down program load.
I think you meant dynamic relocation types. This mechanism is available in
linkers. Dynamic relocation types are only produced when necessary..
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190626/b5b358a7/attachment.html>
More information about the llvm-bugs
mailing list