mpers.sh test uses the wrong readelf
Rolf Eike Beer
eb at emlix.com
Fri Nov 24 12:26:27 UTC 2017
I cross-compile from a Debian amd64 bases system to a custom amd64 system.
During configure I get these warnings:
checking whether mpers.sh -m32 works... readelf: Warning: skipping invalid relocation offset 0x22e in section .debug_info
readelf: Warning: skipping invalid relocation offset 0x23a in section .debug_info
readelf: Warning: skipping invalid relocation offset 0x247 in section .debug_info
readelf: Warning: Invalid pointer size (0) in compunit header, using 4 instead
readelf: Warning: CU at offset 0 contains corrupt or unsupported version number: 588.
readelf: Warning: Invalid pointer size (82) in compunit header, using 4 instead
readelf: Warning: Debug info is corrupted, length of CU at 5 extends beyond end of section (length = 1000002)
cmp: EOF on mpers-m32/sample_struct.h
no
The same happens for -mx32 later. I decided to use the target readelf and
things went smoother then:
sed "s,^[[:space:]]*readelf ,${target_platform}-readelf ," -i strace/mpers.sh
[…]
checking whether mpers.sh -m32 works... yes
checking for struct stat... yes
checking for struct stat.st_mtime_nsec... yes
checking for struct stat64... yes
checking for struct stat64.st_mtime_nsec... yes
I'm unsure how "correct" either behavior is, but for me it looks sensible to
use the target readelf on a target binary.
Greetings,
Eike
--
Rolf Eike Beer, emlix GmbH, http://www.emlix.com
Fon +49 551 30664-0, Fax +49 551 30664-11
Bertha-von-Suttner-Str. 9, 37085 Göttingen, Germany
Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160
Geschäftsführung: Heike Jordan, Dr. Uwe Kracke – Ust-IdNr.: DE 205 198 055
emlix – smart embedded open source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 313 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20171124/e085a914/attachment.bin>
More information about the Strace-devel
mailing list