[llvm] [llvm-readobj][AArch64][ELF][PAC] Support ELF AUTH constants (PR #72713)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 6 19:16:04 PST 2023
================
@@ -6208,6 +6263,13 @@ void ELFDumper<ELFT>::forEachRelocationDo(
Warn(RangeOrErr.takeError());
}
break;
+ case ELF::SHT_AARCH64_AUTH_RELR:
+ if (Obj.getHeader().e_machine != EM_AARCH64) {
+ this->reportUniqueWarning(
----------------
MaskRay wrote:
I haven't checked, but if we can guarantee `assert(Obj.getHeader().e_machine == EM_AARCH64)`. It's better than `if (EM_AARCH64 && ELF::SHT_AARCH64_AUTH_RELR) do`
https://github.com/llvm/llvm-project/pull/72713
More information about the llvm-commits
mailing list