[PATCH] gas: Fix .debug_info CU header for --gdwarf-5

Fangrui Song i@maskray.me
Thu Aug 6 06:04:47 GMT 2020


On 2020-08-04, Alan Modra via Binutils wrote:
>On Mon, Aug 03, 2020 at 02:37:27AM +0200, Mark Wielaard wrote:
>> DWARF5 CU headers have a new unit type field and move the abbrev offset
>> to the end of the header.
>>
>> gas/ChangeLog:
>>
>> 	* dwarf2dbg.c (out_debug_info): Emit unit type and abbrev offset
>> 	for DWARF5.
>> 	* gas/testsuite/gas/elf/dwarf-4-cu.d: New file.
>> 	* gas/testsuite/gas/elf/dwarf-4-cu.s: Likewise.
>> 	* gas/testsuite/gas/elf/dwarf-5-cu.d: Likewise.
>> 	* gas/testsuite/gas/elf/dwarf-5-cu.s: Likewise.
>> 	* testsuite/gas/elf/elf.exp: Run dwarf-4-cu and dwarf-5-cu.
>
>OK.
>
>-- 
>Alan Modra
>Australia Development Lab, IBM

WoW! So .debug_info -gdwarf-5 had been broken until you fixed it yesterday...  Thanks!

I assume that 7.5.1.2 Skeleton and Split Compilation Unit Headers is
still not supported: they have a dwo_id field


More information about the Binutils mailing list