[all-commits] [llvm/llvm-project] 3fd1d6: [ELF] relocateNonAlloc: clean up workaround code

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Dec 7 12:43:54 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3fd1d6953d12e2fba6b5efae0a725500c963ce3a
      https://github.com/llvm/llvm-project/commit/3fd1d6953d12e2fba6b5efae0a725500c963ce3a
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-12-07 (Thu, 07 Dec 2023)

  Changed paths:
    M lld/ELF/InputSection.cpp
    M lld/test/ELF/i386-debug-noabs.test
    M lld/test/ELF/non-abs-reloc.s

  Log Message:
  -----------
  [ELF] relocateNonAlloc: clean up workaround code

relocateNonAlloc is costly for .debug_* section relocating. We don't
want to burn CPU cycles on other targets' workarounds.

Remove a temporary workaround for Linux objtool after a proper fix
https://git.kernel.org/linus/b8ec60e1186cdcfce41e7db4c827cb107e459002

Move the R_386_GOTPC workaround for GCC<8 beside the R_PC workaround.




More information about the All-commits mailing list