Source: diffoscope
Severity: normal

Dear Maintainer,

readelf/objdump return errors/warnings and sometimes fails, examples:

1. objdump: can't disassemble for architecture UNKNOWN!

        1.1 objdump: section '.plt' mentioned in a -j option, but not found in 
any input file
        
http://37.218.242.117/com.traffar.pentago_2.apk.diffoscope.html#lib/armeabi-v7a/libSDL2.so

        1.2 objdump: section '.text' mentioned in a -j option, but not found in 
any input file
        
http://37.218.242.117/us.achromaticmetaphor.agram_21.apk.diffoscope.html#lib/mips64/libanagram.so

2. readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/arm64/diffoscope-results/libgpg-error.html

3. readelf: Error: the dynamic segment offset + size exceeds the size of the 
file
https://tests.reproducible-builds.org/debian/dbd/unstable/amd64/lakai_0.1-2.diffoscope.html

4. readelf: Error: no .dynamic section in the dynamic segment
https://tests.reproducible-builds.org/debian/dbd/unstable/arm64/dbmix_0.9.8-6.3.diffoscope.html

5. readelf: Warning: There is a hole [0x741d3 - 0x741fc] in .debug_loc section.
https://tests.reproducible-builds.org/debian/dbd/unstable/arm64/k3b_2.0.3a-2.diffoscope.html

6. readelf: Warning: Section '.rodata' was not dumped because it does not exist!
https://tests.reproducible-builds.org/debian/dbd/unstable/arm64/zbar_0.10+doc-10.diffoscope.html


apart from fixing the above usages, maybe consider using radare2 
https://packages.debian.org/sid/radare2
which has disassembler for many formats/architectures instead by default if 
possible (readelf/objdump combination will be used as fallback)

Reply via email to