[all-commits] [llvm/llvm-project] b92200: [RelocationResolver] Support R_PPC_REL32 & R_PPC64...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Fri Jul 17 23:35:00 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: b922004ea29d54534c4f09b9cfa655bf5f3360f0
https://github.com/llvm/llvm-project/commit/b922004ea29d54534c4f09b9cfa655bf5f3360f0
Author: Fangrui Song <i at maskray.me>
Date: 2020-07-17 (Fri, 17 Jul 2020)
Changed paths:
M llvm/lib/Object/RelocationResolver.cpp
A llvm/test/DebugInfo/PowerPC/eh-frame.ll
Log Message:
-----------
[RelocationResolver] Support R_PPC_REL32 & R_PPC64_REL{32,64}
This suppresses `failed to compute relocation: R_PPC_REL32, Invalid data was encountered while parsing the file`
and its 64-bit variants when running llvm-dwarfdump on a PowerPC object file with .eh_frame
Unfortunately it is difficult to test the computation:
DWARFDataExtractor::getEncodedPointer does not use the relocated value
and even if it does, we need to teach llvm-dwarfdump --eh-frame to do
some linker job to report a reasonable address.
More information about the All-commits
mailing list