2004-05-02 H.J. Lu <hongjiu.lu@intel.com>

* config/obj-elf.c (obj_elf_change_section): Allow the
	".note.GNU-stack" section has SHF_EXECINSTR.
This commit is contained in:
H.J. Lu 2004-05-03 04:08:32 +00:00
parent c848556f07
commit b9f18452d4
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
* config/obj-elf.c (obj_elf_change_section): Allow the
".note.GNU-stack" section has SHF_EXECINSTR.
2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
* config/obj-elf.c (get_section): Return bfd_boolean.

View File

@ -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)