[llvm-dev] warning: failed to compute relocation: R_AARCH64_PREL32, Invalid data was encountered while parsing the file (original) (raw)

Fangrui Song via llvm-dev llvm-dev at lists.llvm.org
Sat May 30 09:12:31 PDT 2020


On 2020-05-30, Itaru Kitayama via llvm-dev wrote:

Hi, On AArch64, I see a lot of warnings like:

warning: failed to compute relocation: RAARCH64PREL32, Invalid data was encountered while parsing the file when opening object file with llvm-objdump. The llvm-objdump is from trunk at this moment. Is this easy to fix?

Hi Itaru,

Without the object, I am guessing you have an R_AARCH64_PREL32 in a .debug_* section in an object file.

lib/Object/RelocationResolver.cpp does not resolve R_AARCH64_PREL32.

Can you upload the object file somewhere so that people can analyze?



More information about the llvm-dev mailing list