aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2010-11-04 16:03:25 +0000
committerKai Tietz <kai.tietz@onevision.com>2010-11-04 16:03:25 +0000
commit802d48223b68e962dd8d96b20977f7406b9d4d91 (patch)
tree792f9e48141ff892e3c9858cfbcc052a534c14db /bfd/coffcode.h
parent52e00d50337ce0e3ccad7a99c301851dfc721ec2 (diff)
downloadgdb-802d48223b68e962dd8d96b20977f7406b9d4d91.zip
gdb-802d48223b68e962dd8d96b20977f7406b9d4d91.tar.gz
gdb-802d48223b68e962dd8d96b20977f7406b9d4d91.tar.bz2
bfd/
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.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 03ec376..70f9851 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -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;