https://bugs.llvm.org/show_bug.cgi?id=50908
Bug ID: 50908
Summary: Optimize bind opcode generation
Product: lld
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: MachO
Assignee: unassignedb...@nondot.org
Reporter: jezr...@gmail.com
CC: g...@fb.com, jezr...@gmail.com,
llvm-bugs@lists.llvm.org, smee...@fb.com
We currently encode significantly more bind opcodes than ld64. I estimate a
roughly 5x (!) overhead when encoding the same number of bind & rebase entries.
Some ideas:
* Make sure we use BIND_OPCODE_DO_BIND_ULEB_TIMES_SKIPPING_ULEB for encoding
rebases of the GOT
* Sort the GOT entries by dylib, so to minimize the number of
BIND_OPCODE_SET_DYLIB_ORDINAL_* opcodes
--
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