]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/coffgen.c
Fix .dwsect generation for XCOFF. Handle .function generated with DWARF on XCOFF.
[thirdparty/binutils-gdb.git] / bfd / coffgen.c
index 4e1424302025c54feb8c68605fb49b8f098c254f..b13e7732962bcdc52b6e66d1291b5da46d11a5e1 100644 (file)
@@ -1527,6 +1527,8 @@ coff_pointerize_aux (bfd *abfd,
     return;
   if (n_sclass == C_FILE)
     return;
+  if (n_sclass == C_DWARF)
+    return;
 
   BFD_ASSERT (! auxent->is_sym);
   /* Otherwise patch up.  */
@@ -2123,6 +2125,12 @@ coff_print_symbol (bfd *abfd,
                  fprintf (file, "File ");
                  break;
 
+               case C_DWARF:
+                 fprintf (file, "AUX scnlen 0x%lx nreloc %ld",
+                          (unsigned long) auxp->u.auxent.x_sect.x_scnlen,
+                          auxp->u.auxent.x_sect.x_nreloc);
+                 break;
+
                case C_STAT:
                  if (combined->u.syment.n_type == T_NULL)
                    /* Probably a section symbol ?  */