This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Silence .note.GNU-stack,"x"
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Sun, 2 May 2004 00:02:52 -0700
- Subject: PATCH: Silence .note.GNU-stack,"x"
My new patch causes a warning on .note.GNU-stack,"x". This patch
silences it.
H.J.
---
2004-05-01 H.J. Lu <hongjiu.lu@intel.com>
* config/obj-elf.c (obj_elf_change_section): Allow the
".note.GNU-stack" section has SHF_EXECINSTR.
--- gas/config/obj-elf.c.stack 2004-05-01 23:55:48.000000000 -0700
+++ gas/config/obj-elf.c 2004-05-01 23:50:13.000000000 -0700
@@ -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)