aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-07-30 14:11:03 +0000
committerAlan Modra <amodra@gmail.com>2003-07-30 14:11:03 +0000
commit92191b291d488233dec6976b8c2401991bccbdb1 (patch)
treeb2dd5ae400344f27c911b44c0d12722fffcbf074 /gas/config
parente6f672d252b712461db19ff06cea40c86172df4b (diff)
downloadfsf-binutils-gdb-92191b291d488233dec6976b8c2401991bccbdb1.zip
fsf-binutils-gdb-92191b291d488233dec6976b8c2401991bccbdb1.tar.gz
fsf-binutils-gdb-92191b291d488233dec6976b8c2401991bccbdb1.tar.bz2
* config/obj-elf.c (obj_elf_change_section): Allow "x" for .note*.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/obj-elf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index 7a2ad34..ec63baa 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -675,8 +675,9 @@ obj_elf_change_section (name, type, attr, entsize, group_name, linkonce, push)
/* As a GNU extension, we permit a .note section to be
allocatable. If the linker sees an allocateable .note
section, it will create a PT_NOTE segment in the output
- file. */
- if (strcmp (name, ".note") != 0 || attr != SHF_ALLOC)
+ file. We also allow "x" for .note.GNU-stack. */
+ if (!(def_type == SHT_NOTE
+ && (attr == SHF_ALLOC || attr == SHF_EXECINSTR)))
as_warn (_("setting incorrect section attributes for %s"),
name);
}