* PATCH: Silence .note.GNU-stack,"x"
@ 2004-05-02 7:02 H. J. Lu
2004-05-03 1:52 ` Alan Modra
0 siblings, 1 reply; 2+ messages in thread
From: H. J. Lu @ 2004-05-02 7:02 UTC (permalink / raw)
To: binutils
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)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PATCH: Silence .note.GNU-stack,"x"
2004-05-02 7:02 PATCH: Silence .note.GNU-stack,"x" H. J. Lu
@ 2004-05-03 1:52 ` Alan Modra
0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2004-05-03 1:52 UTC (permalink / raw)
To: H. J. Lu; +Cc: binutils
On Sun, May 02, 2004 at 12:02:52AM -0700, H. J. Lu wrote:
> * config/obj-elf.c (obj_elf_change_section): Allow the
> ".note.GNU-stack" section has SHF_EXECINSTR.
OK.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-05-03 1:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-02 7:02 PATCH: Silence .note.GNU-stack,"x" H. J. Lu
2004-05-03 1:52 ` Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).