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.
This commit is contained in:
Kai Tietz 2010-11-04 16:03:25 +00:00
parent 52e00d5033
commit 802d48223b
5 changed files with 30 additions and 1 deletions

View 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> 2010-11-04 Tristan Gingold <gingold@adacore.com>
* makefile.vms (CFLAGS): Make badalias warnings informational. * makefile.vms (CFLAGS): Make badalias warnings informational.

View File

@ -373,6 +373,7 @@ CODE_FRAGMENT
#define DOT_DEBUG ".debug" #define DOT_DEBUG ".debug"
#define GNU_LINKONCE_WI ".gnu.linkonce.wi." #define GNU_LINKONCE_WI ".gnu.linkonce.wi."
#define GNU_LINKONCE_WT ".gnu.linkonce.wt."
#define DOT_RELOC ".reloc" #define DOT_RELOC ".reloc"
#if defined (COFF_LONG_SECTION_NAMES) #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; styp_flags = STYP_DEBUG_INFO;
} }
#ifdef COFF_LONG_SECTION_NAMES #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; 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) if (CONST_STRNEQ (sec_name, DOT_DEBUG)
#ifdef COFF_LONG_SECTION_NAMES #ifdef COFF_LONG_SECTION_NAMES
|| CONST_STRNEQ (sec_name, GNU_LINKONCE_WI) || CONST_STRNEQ (sec_name, GNU_LINKONCE_WI)
|| CONST_STRNEQ (sec_name, GNU_LINKONCE_WT)
#endif #endif
|| CONST_STRNEQ (sec_name, ".stab")) || CONST_STRNEQ (sec_name, ".stab"))
is_dbg = TRUE; is_dbg = TRUE;
@ -799,6 +802,7 @@ styp_to_sec_flags (bfd *abfd ATTRIBUTE_UNUSED,
#endif #endif
#ifdef COFF_LONG_SECTION_NAMES #ifdef COFF_LONG_SECTION_NAMES
|| CONST_STRNEQ (name, GNU_LINKONCE_WI) || CONST_STRNEQ (name, GNU_LINKONCE_WI)
|| CONST_STRNEQ (name, GNU_LINKONCE_WT)
#endif #endif
|| CONST_STRNEQ (name, ".stab")) || CONST_STRNEQ (name, ".stab"))
{ {
@ -1132,6 +1136,7 @@ styp_to_sec_flags (bfd *abfd,
if (CONST_STRNEQ (name, DOT_DEBUG) if (CONST_STRNEQ (name, DOT_DEBUG)
#ifdef COFF_LONG_SECTION_NAMES #ifdef COFF_LONG_SECTION_NAMES
|| CONST_STRNEQ (name, GNU_LINKONCE_WI) || CONST_STRNEQ (name, GNU_LINKONCE_WI)
|| CONST_STRNEQ (name, GNU_LINKONCE_WT)
#endif #endif
|| CONST_STRNEQ (name, ".stab")) || CONST_STRNEQ (name, ".stab"))
is_dbg = TRUE; is_dbg = TRUE;

View 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> 2010-11-04 Alan Modra <amodra@gmail.com>
* plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd. * plugin.c (is_ir_dummy_bfd): Don't segfault on NULL abfd.

View File

@ -294,5 +294,11 @@ SECTIONS
{ {
*(.debug_ranges) *(.debug_ranges)
} }
/* DWARF 4. */
.debug_types ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} :
{
*(.debug_types) *(.gnu.linkonce.wt.*)
}
} }
EOF EOF

View File

@ -300,5 +300,11 @@ SECTIONS
{ {
*(.debug_ranges) *(.debug_ranges)
} }
/* DWARF 4. */
.debug_types ${RELOCATING+BLOCK(__section_alignment__)} ${RELOCATING+(NOLOAD)} :
{
*(.debug_types) *(.gnu.linkonce.wt.*)
}
} }
EOF EOF