[all-commits] [llvm/llvm-project] 1b65b1: [ELF] Enable checkDynamicRelocsDefault for PPC64
Fangrui Song via All-commits
all-commits at lists.llvm.org
Fri Sep 15 22:38:32 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1b65b159da02fc9062ae13ec83258dd7b3a3ce4a
https://github.com/llvm/llvm-project/commit/1b65b159da02fc9062ae13ec83258dd7b3a3ce4a
Author: Fangrui Song <i at maskray.me>
Date: 2023-09-15 (Fri, 15 Sep 2023)
Changed paths:
M lld/ELF/Driver.cpp
M lld/ELF/OutputSections.cpp
M lld/test/ELF/ppc64-ifunc.s
M lld/test/ELF/ppc64-long-branch-pi.s
Log Message:
-----------
[ELF] Enable checkDynamicRelocsDefault for PPC64
.plt and .branch_lt have the type of SHT_NOBITS and may be relocated by dynamic
relocations with non-zero addends. They should be skipped for the
--check-dynamic-relocations check, as --apply-dynamic-relocs does not apply.
A side effect is that -z rel does not work for the two sections.
Added two --apply-dynamic-relocs --check-dynamic-relocations tests. Also checked
linking a PPC64 clang.
More information about the All-commits
mailing list