[ELF] relocateNonAlloc: clean up workaround code
commit3fd1d6953d12e2fba6b5efae0a725500c963ce3a
authorFangrui Song <i@maskray.me>
Thu, 7 Dec 2023 20:43:40 +0000 (7 12:43 -0800)
committerFangrui Song <i@maskray.me>
Thu, 7 Dec 2023 20:43:40 +0000 (7 12:43 -0800)
tree13647d9f7b226b9ace84fd64d3fdf94d6f19bad8
parent7030aab1d7a33c17d72eaf721c679be6ca0b073d
[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.
lld/ELF/InputSection.cpp
lld/test/ELF/i386-debug-noabs.test
lld/test/ELF/non-abs-reloc.s