warning: failed to compute relocation: R_AARCH64_PREL32, Invalid data was encountered while parsing the file

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

warning: failed to compute relocation: R_AARCH64_PREL32, 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?

Hi Fangrui,
I've uploaded the object file to the entry below:

https://bugs.llvm.org/show_bug.cgi?id=46143