Why does "readelf" issue warnings saying that a virtual address is not in any "PT_LOAD" segment?

Question

Why does readelf issue warnings saying that a virtual address is not in any PT_LOAD segment?

Answer

The SymbianOS toolchain generates ARM BPABI binaries, which must be postprocessed by the SymbianOS postlinker before actual execution. The BPABI format uses file offsets, rather than virtual addresses, in the ELF file. However, readelf is unaware of this convention, which causes is it to issue the warning. The data displayed by readelf will still be correct; the warning can be safely ignored.


This entry was last updated on 8 March 2013.