]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/ChangeLog
gas: Fix .debug_info CU header for --gdwarf-5
authorMark Wielaard <mark@klomp.org>
Mon, 3 Aug 2020 00:04:17 +0000 (02:04 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 4 Aug 2020 09:28:39 +0000 (11:28 +0200)
commita3b3e8586d80204660e203d05edfe88418c394a2
tree2315042dfb3ee4f7a37a24aee4821712c31466cc
parent25b1f10d9b55de5dee002500a51e8fc1cd543d30
gas: Fix .debug_info CU header for --gdwarf-5

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.
gas/ChangeLog
gas/dwarf2dbg.c
gas/testsuite/gas/elf/dwarf-4-cu.d [new file with mode: 0644]
gas/testsuite/gas/elf/dwarf-4-cu.s [new file with mode: 0644]
gas/testsuite/gas/elf/dwarf-5-cu.d [new file with mode: 0644]
gas/testsuite/gas/elf/dwarf-5-cu.s [new file with mode: 0644]
gas/testsuite/gas/elf/elf.exp