Retain .debug_addr sections loaded in the main file.

PR 27534
	* readelf.c (display_debug_section): Also retain .debug_addr
	sections.
This commit is contained in:
Nick Clifton 2021-03-16 18:01:58 +00:00
parent d6bfbc3981
commit 44266f362b
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2021-03-16 Nick Clifton <nickc@redhat.com>
PR 27534
* readelf.c (display_debug_section): Also retain .debug_addr
sections.
2021-03-16 Nick Clifton <nickc@redhat.com>
PR 27533

View File

@ -15442,7 +15442,7 @@ display_debug_section (int shndx, Elf_Internal_Shdr * section, Filedata * fileda
section_subset = NULL;
if (secondary || (id != info && id != abbrev))
if (secondary || (id != info && id != abbrev && id != debug_addr))
free_debug_section (id);
}
break;