https://bugs.llvm.org/show_bug.cgi?id=39049
Bug ID: 39049
Summary: Avoid relocations in position independent code by
storing offset of program counter
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: unassignedb...@nondot.org
Reporter: sland...@gmail.com
CC: llvm-bugs@lists.llvm.org
The offset at which position independent code was loading is always stored in
the program counter, and a simple addition/subtraction with a constant could be
used instead of a relocation table that slows down program load. This will
require an additional instruction at the call site, so a collaboration between
llvm and lld.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs