aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-07-25 16:08:28 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-07-25 16:08:28 +0000
commit8e8c182c831852d49827b896af80277242c89d59 (patch)
treef5c2a50023266950c26da70c3225ce305ffaa1ed /gas/config
parentd622ef4b20a888ff4a79e93cd98057eb9c6d4295 (diff)
downloadgdb-8e8c182c831852d49827b896af80277242c89d59.zip
gdb-8e8c182c831852d49827b896af80277242c89d59.tar.gz
gdb-8e8c182c831852d49827b896af80277242c89d59.tar.bz2
2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
* config/obj-elf.c (obj_elf_change_section): Always set section type and flags.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/obj-elf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index 7d89175..a8ba588 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -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)