]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
bfd/
authorKai Tietz <kai.tietz@onevision.com>
Thu, 4 Nov 2010 16:03:25 +0000 (16:03 +0000)
committerKai Tietz <kai.tietz@onevision.com>
Thu, 4 Nov 2010 16:03:25 +0000 (16:03 +0000)
2010-11-04  Kai Tietz  <kai.tietz@onevision.com>

        * coffcode.h (GNU_LINKONCE_WT): New.
        (sec_to_styp_flags): Add handling of new debug
        section.
        (styp_to_sec_flags): Likewise.

ld/
010-11-04  Kai Tietz  <kai.tietz@onevision.com>

       * scripttempl/pe.sc (.debug_types): New.
       * scripttempl/pep.sc: Likewise.

bfd/ChangeLog
bfd/coffcode.h
ld/ChangeLog
ld/scripttempl/pe.sc
ld/scripttempl/pep.sc

index ab5b330830784f45bb70a901ea13f38749a79bdf..b31bfa4503cd8d9b3cf19ac1466dac910e37c004 100644 (file)
@@ -1,3 +1,10 @@
+2010-11-04  Kai Tietz  <kai.tietz@onevision.com>
+
+       * coffcode.h (GNU_LINKONCE_WT): New.
+       (sec_to_styp_flags): Add handling of new debug
+       section.
+       (styp_to_sec_flags): Likewise.
+
 2010-11-04  Tristan Gingold  <gingold@adacore.com>
 
        * makefile.vms (CFLAGS): Make badalias warnings informational.
index 03ec376bca2d73006cab50083a7695dd2c835017..70f98512f9a4dabdbd0d7c7b054a3215a9ff6031 100644 (file)
@@ -373,6 +373,7 @@ CODE_FRAGMENT
 
 #define DOT_DEBUG      ".debug"
 #define GNU_LINKONCE_WI ".gnu.linkonce.wi."
+#define GNU_LINKONCE_WT ".gnu.linkonce.wt."
 #define DOT_RELOC      ".reloc"
 
 #if defined (COFF_LONG_SECTION_NAMES)
@@ -557,7 +558,8 @@ sec_to_styp_flags (const char *sec_name, flagword sec_flags)
       styp_flags = STYP_DEBUG_INFO;
     }
 #ifdef COFF_LONG_SECTION_NAMES
-  else if (CONST_STRNEQ (sec_name, GNU_LINKONCE_WI))
+  else if (CONST_STRNEQ (sec_name, GNU_LINKONCE_WI)
+          || CONST_STRNEQ (sec_name, GNU_LINKONCE_WT))
     {
       styp_flags = STYP_DEBUG_INFO;
     }
@@ -641,6 +643,7 @@ sec_to_styp_flags (const char *sec_name, flagword sec_flags)
   if (CONST_STRNEQ (sec_name, DOT_DEBUG)
 #ifdef COFF_LONG_SECTION_NAMES
       || CONST_STRNEQ (sec_name, GNU_LINKONCE_WI)
+      || CONST_STRNEQ (sec_name, GNU_LINKONCE_WT)
 #endif
       || CONST_STRNEQ (sec_name, ".stab"))
     is_dbg = TRUE;
@@ -799,6 +802,7 @@ styp_to_sec_flags (bfd *abfd ATTRIBUTE_UNUSED,
 #endif
 #ifdef COFF_LONG_SECTION_NAMES
           || CONST_STRNEQ (name, GNU_LINKONCE_WI)
+          || CONST_STRNEQ (name, GNU_LINKONCE_WT)
 #endif
           || CONST_STRNEQ (name, ".stab"))
     {
@@ -1132,6 +1136,7 @@ styp_to_sec_flags (bfd *abfd,
   if (CONST_STRNEQ (name, DOT_DEBUG)
 #ifdef COFF_LONG_SECTION_NAMES
       || CONST_STRNEQ (name, GNU_LINKONCE_WI)
+      || CONST_STRNEQ (name, GNU_LINKONCE_WT)
 #endif
       || CONST_STRNEQ (name, ".stab"))
     is_dbg = TRUE;
index 2b037e420bfd3ced1ba77c03dd3e1fa3fa97f441..cd29ee843dcc29c856e3f2a81491a445086d4585 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-04  Kai Tietz  <kai.tietz@onevision.com>
+
+       * scripttempl/pe.sc (.debug_types): New.
+       * scripttempl/pep.sc: Likewise.
+
 2010-11-04  Alan Modra  <amodra@gmail.com>
 
        * plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd.
index e178fce0d3b1d0ee36697968d84a4cab29de96e6..7d52cc542cf121f5803af764dc0137c17ed8a89a 100644 (file)
@@ -294,5 +294,11 @@ SECTIONS
   {
     *(.debug_ranges)
   }
+
+  /* DWARF 4.  */
+  .debug_types ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} :
+  {
+    *(.debug_types) *(.gnu.linkonce.wt.*)
+  }
 }
 EOF
index 3682766fe7810908682c130ace795ffce3886915..8fa5f052d6beca135fb95a2e785f06596b43ac98 100644 (file)
@@ -300,5 +300,11 @@ SECTIONS
   {
     *(.debug_ranges)
   }
+
+  /* DWARF 4.  */
+  .debug_types ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} :
+  {
+    *(.debug_types) *(.gnu.linkonce.wt.*)
+  }
 }
 EOF