[PATCH] fix GNU_STACK default when linking against non-DYN, non-REL
Alan Modra
amodra@bigpond.net.au
Tue Apr 8 05:42:00 GMT 2008
On Fri, Apr 04, 2008 at 09:27:04AM -0700, Kees Cook wrote:
> --- bfd/elflink.c 13 Mar 2008 05:27:42 -0000 1.302
> +++ bfd/elflink.c 4 Apr 2008 16:18:26 -0000
> @@ -5403,7 +5403,7 @@ bfd_elf_size_dynamic_sections (bfd *outp
> {
> asection *s;
>
> - if (inputobj->flags & (DYNAMIC | BFD_LINKER_CREATED))
> + if (inputobj->flags & (DYNAMIC | EXEC_P | BFD_LINKER_CREATED))
> continue;
> s = bfd_get_section_by_name (inputobj, ".note.GNU-stack");
> if (s)
Applied.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list