This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] fix GNU_STACK default when linking against non-DYN, non-REL
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Kees Cook <kees at canonical dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 8 Apr 2008 15:11:53 +0930
- Subject: Re: [PATCH] fix GNU_STACK default when linking against non-DYN, non-REL
- References: <20080404162704.GP8254@outflux.net>
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