[PATCH] D157020: [lld/ELF] Don't relax R_X86_64_(REX_)GOTPCRELX when offset is too far

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 27 14:27:58 PDT 2023


MaskRay added inline comments.


================
Comment at: lld/ELF/Arch/X86_64.cpp:331
+          continue;
+        if (rel.expr != R_RELAX_GOT_PC)
+          continue;
----------------
If `R_RELAX_GOT_PC ` is tested, is R_X86_64_GOTPCRELX/R_X86_64_REX_GOTPCRELX check still necessary?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157020/new/

https://reviews.llvm.org/D157020



More information about the llvm-commits mailing list