[binutils-gdb] Retain .debug_addr sections loaded in the main file.
Nick Clifton
nickc@sourceware.org
Tue Mar 16 18:02:24 GMT 2021
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=44266f362b9bc5bed31923b6ab75ea697ad7d519
commit 44266f362b9bc5bed31923b6ab75ea697ad7d519
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Mar 16 18:01:58 2021 +0000
Retain .debug_addr sections loaded in the main file.
PR 27534
* readelf.c (display_debug_section): Also retain .debug_addr
sections.
Diff:
---
binutils/ChangeLog | 6 ++++++
binutils/readelf.c | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index e9a78ee5567..6a1d03f3f4e 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 2205ba1b8d6..9e8cd873e47 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -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;
More information about the Binutils-cvs
mailing list