From 94be91de018273a192f0aa60b1f40971d593e445 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 31 Aug 2009 12:02:36 +0000 Subject: bfd/ 2009-08-31 Jan Beulich * 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 * 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 * gas/elf/section5.l: Remove no longer issued warning pattern. --- gas/ChangeLog | 5 +++++ gas/config/obj-elf.c | 2 ++ gas/testsuite/ChangeLog | 4 ++++ gas/testsuite/gas/elf/section5.l | 1 - 4 files changed, 11 insertions(+), 1 deletion(-) (limited to 'gas') 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 + + * config/obj-elf.c (obj_elf_change_section): Set default type + by calling bfd_elf_get_default_section_type. + 2009-08-31 Jie Zhang * 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 + + * gas/elf/section5.l: Remove no longer issued warning pattern. + 2009-08-29 Matt Fleming * 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: .* -- cgit v1.1