aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2009-08-31 12:02:36 +0000
committerJan Beulich <jbeulich@novell.com>2009-08-31 12:02:36 +0000
commit94be91de018273a192f0aa60b1f40971d593e445 (patch)
treebbc9aba062007342a08d1e13e1bd370d3e11e01b /gas/config
parentead0c8f37cc1979c316352bad6a6b7c510f8c40f (diff)
downloadgdb-94be91de018273a192f0aa60b1f40971d593e445.zip
gdb-94be91de018273a192f0aa60b1f40971d593e445.tar.gz
gdb-94be91de018273a192f0aa60b1f40971d593e445.tar.bz2
bfd/
2009-08-31 Jan Beulich <jbeulich@novell.com> * elf-bfd.h (bfd_elf_get_default_section_type): Declare. * elf.c (bfd_elf_get_default_section_type): New. (elf_fake_sections): Use bfd_elf_get_default_section_type. gas/ 2009-08-31 Jan Beulich <jbeulich@novell.com> * config/obj-elf.c (obj_elf_change_section): Set default type by calling bfd_elf_get_default_section_type. gas/testsuite/ 2009-08-31 Jan Beulich <jbeulich@novell.com> * gas/elf/section5.l: Remove no longer issued warning pattern.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/obj-elf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index dd91183..4441fb3 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -685,6 +685,8 @@ obj_elf_change_section (const char *name,
{
symbolS *secsym;
+ if (type == SHT_NULL)
+ type = bfd_elf_get_default_section_type (flags);
elf_section_type (sec) = type;
elf_section_flags (sec) = attr;