[all-commits] [llvm/llvm-project] ffa111: [ELF] Mention section name for STT_SECTION in repo...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Fri Mar 3 12:35:18 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ffa11183303289654d26b8f761dcf54e611058ca
https://github.com/llvm/llvm-project/commit/ffa11183303289654d26b8f761dcf54e611058ca
Author: Fangrui Song <i at maskray.me>
Date: 2023-03-03 (Fri, 03 Mar 2023)
Changed paths:
M lld/ELF/Relocations.cpp
M lld/test/ELF/aarch64-movw-error.s
M lld/test/ELF/linkerscript/eh-frame-reloc-out-of-range.test
M lld/test/ELF/ppc64-reloc-pcrel34-overflow.s
M lld/test/ELF/x86-64-reloc-range.s
Log Message:
-----------
[ELF] Mention section name for STT_SECTION in reportRangeError()
D73518 mentioned non-STT_SECTION symbol names. This patch extends the code to
handle STT_SECTION symbols, where we report the section name.
This change helps at least the following cases with very little code.
* Whether a out-of-range relocation is due to code or data.
* For a relocation in .debug_info, which referenced `.debug_*` section (due to DWARF32 limitation) causes the problem.
Reviewed By: peter.smith
Differential Revision: https://reviews.llvm.org/D145199
More information about the All-commits
mailing list