2003-10-21 H.J. Lu * config/obj-elf.c (obj_elf_change_section): Use specified section attributes. --- gas/config/obj-elf.c.attr 2003-09-23 08:16:44.000000000 -0700 +++ gas/config/obj-elf.c 2003-10-21 22:31:51.000000000 -0700 @@ -615,6 +615,7 @@ obj_elf_change_section (name, type, attr segT sec; flagword flags; const struct bfd_elf_special_section *ssect; + bfd_boolean override = FALSE; #ifdef md_flush_pending_output md_flush_pending_output (); @@ -685,10 +686,13 @@ obj_elf_change_section (name, type, attr && (attr &~ ssect->attr &~ SHF_MERGE &~ SHF_STRINGS) == 0) ; else - as_warn (_("setting incorrect section attributes for %s"), - name); + { + as_warn (_("setting incorrect section attributes for %s"), + name); + override = TRUE; + } } - if (old_sec == NULL) + if (!override && old_sec == NULL) attr |= ssect->attr; }