OSDN Git Service

2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl@lucon.org>
Fri, 25 Jul 2003 16:08:28 +0000 (16:08 +0000)
committerH.J. Lu <hjl@lucon.org>
Fri, 25 Jul 2003 16:08:28 +0000 (16:08 +0000)
* config/obj-elf.c (obj_elf_change_section): Always set section
type and flags.

gas/ChangeLog
gas/config/obj-elf.c

index 43cfcc7..c46be5d 100644 (file)
@@ -1,5 +1,10 @@
 2003-07-25  H.J. Lu  <hongjiu.lu@intel.com>
 
+       * config/obj-elf.c (obj_elf_change_section): Always set section
+       type and flags.
+
+2003-07-25  H.J. Lu  <hongjiu.lu@intel.com>
+
        * config/obj-elf.c (special_sections): Removed.
        (obj_elf_change_section): Call _bfd_elf_get_sec_type_attr. Set
        elf_section_type and elf_section_flags.
index 7d89175..a8ba588 100644 (file)
@@ -681,11 +681,11 @@ obj_elf_change_section (name, type, attr, entsize, group_name, linkonce, push)
                     name);
        }
       attr |= def_attr;
-
-      elf_section_type (sec) = type;
-      elf_section_flags (sec) = attr;
     }
 
+  elf_section_type (sec) = type;
+  elf_section_flags (sec) = attr;
+
   /* Convert ELF type and flags to BFD flags.  */
   flags = (SEC_RELOC
           | ((attr & SHF_WRITE) ? 0 : SEC_READONLY)