]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 25 Jul 2003 16:08:28 +0000 (16:08 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
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 43cfcc76d2139a6eb39b78f48190674abb4e5ebe..c46be5df0615a516f28e623637a0cdb54f71e200 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 7d891759e41ff324998ddc9a2ef02f9aa775f4ce..a8ba588370c1faff6a30838435c63f92b931df66 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)