From 070b775f03ebdab6d0d007787fe19b916af4439c Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 4 May 2020 13:50:05 +0100 Subject: GAS: Do not create an entry for the default directory if the directory table is empty. Improve readelf's decoding of empty directory and file name tables. PR 25917 * dwarf.c (display_debug_lines_decoded): Warn if encountering a supicious number of entries for DWARF-5 format directory and file name tables. Do not display file name table header if the table is empty. Do not allocate space for empty tables. --- gas/ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gas/ChangeLog') diff --git a/gas/ChangeLog b/gas/ChangeLog index 20ae817..8d664f5 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,5 @@ +2020-05-04 Nick Clifton + 2020-05-04 Andre Vieira PR gas/25863 @@ -10,6 +12,9 @@ PR 25917 * dwarf2dbg.c (out_dir_and_file_list): Check for the directory table's existence before looking at its entries. + Also do not emit a default directory entry if there are no + directories in use. + * testsuite/gas/elf/pr25917.s: New test source file. * testsuite/gas/elf/pr25917.d: New test driver. * testsuite/gas/elf/elf.exp (run_elf_list_test): Run the new test. -- cgit v1.1