LLVM Discussion Forums

Possible bug in cfi.cpp

Hello there,

Is it possible that cfi cross-dso initialization contains a bug regarding processing of ELF dynamic section?
I am looking into the
https://reviews.llvm.org/source/llvm-github/browse/master/compiler-rt/lib/cfi/cfi.cpp$225
(for symtab and strtab)

For my mind, we have to add the base address of the module like the bionic loader does,
http://aosp.opersys.com/xref/android-10.0.0_r2/xref/bionic/libc/bionic/vdso.cpp#122

It is very strange for me, especially because this part of code is very old – it wasn’t touched since its introduction in 2015.

Best regards,

Nikolay Nerovny