From: H.J. Lu Date: Mon, 3 May 2004 04:08:32 +0000 (+0000) Subject: 2004-05-02 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b9f18452d42e7998f9c0bd59ec4018f639620bbd;p=binutils-gdb.git 2004-05-02 H.J. Lu * config/obj-elf.c (obj_elf_change_section): Allow the ".note.GNU-stack" section has SHF_EXECINSTR. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 484ed2477b1..f4a34f2f840 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2004-05-02 H.J. Lu + + * config/obj-elf.c (obj_elf_change_section): Allow the + ".note.GNU-stack" section has SHF_EXECINSTR. + 2004-05-02 H.J. Lu * config/obj-elf.c (get_section): Return bfd_boolean. diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index 7bd62d769d4..f970110f957 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -600,6 +600,10 @@ obj_elf_change_section (const char *name, || strcmp (name, ".strtab") == 0 || strcmp (name, ".symtab") == 0)) override = TRUE; + /* .note.GNU-stack can have SHF_EXECINSTR. */ + else if (attr == SHF_EXECINSTR + && strcmp (name, ".note.GNU-stack") == 0) + override = TRUE; else { if (group_name == NULL)