Linker corrupts debug information

Bug #1981999 reported by Sebastian Perta
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Arm Embedded Toolchain
New
Undecided
Unassigned

Bug Description

Using the latest version arm-none-eabi-gcc (GNU Toolchain for the Arm Architecture 11.2-2022.02 (arm-11.16)) 11.2.1 20220111, the linker corrupts the debug information when using DWARF4.

Attached there are some object files, a linker script, and a command file.
Executing the following commands:
arm-none-eabi-gcc @RA6A2_GCC11.elf.in2
arm-none-eabi-readelf --debug-dump GCC11.elf

We can see several errors:
 readelf: Error: /data/jenkins/workspace/GNU-toolchain/arm-11/src/binutils-gdb/binutils/dwarf.c:6303: end of data encountered whilst reading LEB
  readelf: Error: Invalid location list entry type 5
  readelf: Error: Invalid location list entry type 1
  readelf: Error: /data/jenkins/workspace/GNU-toolchain/arm-11/src/binutils-gdb/binutils/dwarf.c:6303: end of data encountered whilst reading LEB

The errors can't be seen dumping the debug information from the object files so I assume the linker is the one corrupting the data.

Revision history for this message
Sebastian Perta (sebastianperta) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.