aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2021-03-16 18:01:58 +0000
committerNick Clifton <nickc@redhat.com>2021-03-16 18:01:58 +0000
commit44266f362b9bc5bed31923b6ab75ea697ad7d519 (patch)
treea23415aec83a947a648c2f3f99f1fb467eeaf612 /binutils
parentd6bfbc398158eaa381b08c7cf7b943ac4085d4a6 (diff)
downloadgdb-44266f362b9bc5bed31923b6ab75ea697ad7d519.zip
gdb-44266f362b9bc5bed31923b6ab75ea697ad7d519.tar.gz
gdb-44266f362b9bc5bed31923b6ab75ea697ad7d519.tar.bz2
Retain .debug_addr sections loaded in the main file.
PR 27534 * readelf.c (display_debug_section): Also retain .debug_addr sections.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/readelf.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index e9a78ee..6a1d03f 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,11 @@
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
* readelf.c (process_section_contents): Only dump debug
information for separate files unless process_links is enabled.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 2205ba1..9e8cd87 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;