]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Retain .debug_addr sections loaded in the main file.
authorNick Clifton <nickc@redhat.com>
Tue, 16 Mar 2021 18:01:58 +0000 (18:01 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 16 Mar 2021 18:01:58 +0000 (18:01 +0000)
PR 27534
* readelf.c (display_debug_section): Also retain .debug_addr
sections.

binutils/ChangeLog
binutils/readelf.c

index e9a78ee55678c9fe3afa40ebd48dd4b01327cfd8..6a1d03f3f4ea5ab27b5d6f184fa607278f8db817 100644 (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
index 2205ba1b8d6f35a4cbad3809977e4562c2d8f939..9e8cd873e47e2f5748c9cd62a11729461691d390 100644 (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;