[lld] [lld][ELF] Add range extension thunks for x86-64 (PR #180266)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 11 00:19:39 PST 2026


================
@@ -443,9 +452,9 @@ void X86_64::writeIgotPlt(uint8_t *buf, const Symbol &s) const {
 
 void X86_64::writePltHeader(uint8_t *buf) const {
   const uint8_t pltData[] = {
-      0xff, 0x35, 0, 0, 0, 0, // pushq GOTPLT+8(%rip)
-      0xff, 0x25, 0, 0, 0, 0, // jmp *GOTPLT+16(%rip)
-      0x0f, 0x1f, 0x40, 0x00, // nop
+      0xff, 0x35, 0,    0,    0, 0, // pushq GOTPLT+8(%rip)
----------------
MaskRay wrote:

please don't format unmodified file. Use a range diff clang-format instead of formatting the whole file.

https://github.com/llvm/llvm-project/pull/180266


More information about the llvm-commits mailing list