]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Re-enable the dislay of debug sections in separate debuginfo files without the need...
authorNick Clifton <nickc@redhat.com>
Tue, 16 Mar 2021 16:39:46 +0000 (16:39 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 16 Mar 2021 16:39:46 +0000 (16:39 +0000)
PR 27533
* readelf.c (process_section_contents): Only dump debug
information for separate files unless process_links is enabled.
(process_object): Always call process_section_contents for
separate info files.

binutils/ChangeLog
binutils/readelf.c

index 62f98b4cda027eb9316eaec0297981d02b0757b1..e9a78ee55678c9fe3afa40ebd48dd4b01327cfd8 100644 (file)
@@ -1,3 +1,11 @@
+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.
+       (process_object): Always call process_section_contents for
+       separate info files.
+
 2021-03-15  Nick Clifton  <nickc@redhat.com>
 
        PR 27487
index 1994eebd91065c83f6601c023ccacf8d177cca27..2205ba1b8d6f35a4cbad3809977e4562c2d8f939 100644 (file)
@@ -15509,6 +15509,9 @@ process_section_contents (Filedata * filedata)
     {
       dump_type dump = filedata->dump.dump_sects[i];
 
+      if (filedata->is_separate && ! process_links)
+       dump &= DEBUG_DUMP;
+      
 #ifdef SUPPORT_DISASSEMBLY
       if (dump & DISASS_DUMP)
        {
@@ -21222,10 +21225,10 @@ process_object (Filedata * filedata)
            res = FALSE;
          else if (! process_section_headers (d->handle))
            res = FALSE;
+         else if (! process_section_contents (d->handle))
+           res = FALSE;
          else if (process_links)
            {
-             if (! process_section_contents (d->handle))
-               res = FALSE;
              if (! process_section_groups (d->handle))
                res = FALSE;
              if (! process_program_headers (d->handle))