Itaru Kitayama via llvm-dev
2020-May-30 02:55 UTC
[llvm-dev] 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?
Fangrui Song via llvm-dev
2020-May-30 16:12 UTC
[llvm-dev] warning: failed to compute relocation: R_AARCH64_PREL32, Invalid data was encountered while parsing the file
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: 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?
Itaru Kitayama via llvm-dev
2020-May-31 03:08 UTC
[llvm-dev] warning: failed to compute relocation: R_AARCH64_PREL32, Invalid data was encountered while parsing the file
Hi Fangrui, I've uploaded the object file to the entry below: https://bugs.llvm.org/show_bug.cgi?id=46143 On Sun, May 31, 2020 at 1:12 AM Fangrui Song <maskray at google.com> wrote:> > 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: 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?