From 8e8c182c831852d49827b896af80277242c89d59 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 25 Jul 2003 16:08:28 +0000 Subject: [PATCH] 2003-07-25 H.J. Lu * config/obj-elf.c (obj_elf_change_section): Always set section type and flags. --- gas/ChangeLog | 5 +++++ gas/config/obj-elf.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 43cfcc76d21..c46be5df061 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2003-07-25 H.J. Lu + + * config/obj-elf.c (obj_elf_change_section): Always set section + type and flags. + 2003-07-25 H.J. Lu * config/obj-elf.c (special_sections): Removed. diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index 7d891759e41..a8ba588370c 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) -- 2.30.2