[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/29532] /usr/lib/debug/usr/lib/crti.o.debug: file format no
From: |
nickc at redhat dot com |
Subject: |
[Bug binutils/29532] /usr/lib/debug/usr/lib/crti.o.debug: file format not recognized |
Date: |
Mon, 05 Sep 2022 12:10:56 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=29532
--- Comment #4 from Nick Clifton <nickc at redhat dot com> ---
(In reply to alex_y_xu from comment #2)
Hi Alex,
I agree that the creation of the corrupt file is not a fluke. It is
deliberate. But...
> 2. objcopy --only-keep-debug crti.o crti.o.debug
The files created by the --only-keep-debug option to objcopy are
*intentionally* corrupt. The are not intended to be complete ELF
files. Instead they only contain debug information and enough
ELF-like formatting that they can be matched up with their stripped
counterparts.
Note - as a workaround you can use the readelf program instead
of objdump. This program is more forgiving of the not-quite-ELF
like contents of debug information files:
% readelf -h crti.o.debug
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
[...and so on...]
Cheers
Nick
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/29532] /usr/lib/debug/usr/lib/crti.o.debug: file format not recognized, alex_y_xu at yahoo dot ca, 2022/09/02
- [Bug binutils/29532] /usr/lib/debug/usr/lib/crti.o.debug: file format not recognized, alex_y_xu at yahoo dot ca, 2022/09/02
- [Bug binutils/29532] /usr/lib/debug/usr/lib/crti.o.debug: file format not recognized,
nickc at redhat dot com <=
- [Bug binutils/29532] /usr/lib/debug/usr/lib/crti.o.debug: file format not recognized, address@hidden, 2022/09/05
- [Bug binutils/29532] /usr/lib/debug/usr/lib/crti.o.debug: file format not recognized, alex_y_xu at yahoo dot ca, 2022/09/05
- [Bug binutils/29532] /usr/lib/debug/usr/lib/crti.o.debug: file format not recognized, nickc at redhat dot com, 2022/09/05
- [Bug binutils/29532] /usr/lib/debug/usr/lib/crti.o.debug: file format not recognized, cvs-commit at gcc dot gnu.org, 2022/09/09
- [Bug binutils/29532] /usr/lib/debug/usr/lib/crti.o.debug: file format not recognized, nickc at redhat dot com, 2022/09/09
- [Bug binutils/29532] /usr/lib/debug/usr/lib/crti.o.debug: file format not recognized, alex_y_xu at yahoo dot ca, 2022/09/09