Linker corrupts debug information
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_
arm-none-
We can see several errors:
readelf: Error: /data/jenkins/
readelf: Error: Invalid location list entry type 5
readelf: Error: Invalid location list entry type 1
readelf: Error: /data/jenkins/
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.