This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] fix GNU_STACK default when linking against non-DYN, non-REL


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]