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
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Strace-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/strace-devel
