aboutsummaryrefslogtreecommitdiff
path: root/gas
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
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')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/obj-elf.c2
-rw-r--r--gas/testsuite/ChangeLog4
-rw-r--r--gas/testsuite/gas/elf/section5.l1
4 files changed, 11 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 34354ad..d318c92 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2009-08-31 Jie Zhang <jie.zhang@analog.com>
* config/bfin-aux.h: Change format from DOS to UNIX.
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;
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index ab53121..4a2f405 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2009-08-31 Jan Beulich <jbeulich@novell.com>
+
+ * gas/elf/section5.l: Remove no longer issued warning pattern.
+
2009-08-29 Matt Fleming <matt@console-pimps.org>
* gas/sh/sign-extension.d: New file.
diff --git a/gas/testsuite/gas/elf/section5.l b/gas/testsuite/gas/elf/section5.l
index ed54758..31b87e60 100644
--- a/gas/testsuite/gas/elf/section5.l
+++ b/gas/testsuite/gas/elf/section5.l
@@ -2,7 +2,6 @@
.*:7: Warning: .*
.*:7: Warning: .*
.*:10: Warning: .*
-.*:13: Warning: .*
.*:16: Warning: .*
.*:18: Warning: .*
.*:20: Warning: .*