cleanup PT_GNU_STACK size handling

Nathan Sidwell nathan_sidwell@mentor.com
Thu Nov 1 14:27:00 GMT 2012


On 10/26/12 23:42, H.J. Lu wrote:
> On Mon, Oct 22, 2012 at 11:05 PM, Nathan Sidwell
> <nathan_sidwell@mentor.com> wrote:
>> On 10/23/12 00:30, Alan Modra wrote:
>>
>> thanks for more background on -z noexecstack etc.  Here's a patch
>> incorporating the (non-)change you wanted.  Tested as before.
>>
>
> Could you please add -z stack-size to "ld --help"?


done.


-- 
Nathan Sidwell
-------------- next part --------------
2012-11-01  Nathan Sidwell  <nathan@codesourcery.com>

	* emultempl/elf32.em: Print stacksize help.

Index: emultempl/elf32.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/elf32.em,v
retrieving revision 1.230
diff -u -3 -p -r1.230 elf32.em
--- emultempl/elf32.em	23 Oct 2012 09:33:55 -0000	1.230
+++ emultempl/elf32.em	1 Nov 2012 14:25:12 -0000
@@ -2467,6 +2467,8 @@ fragment <<EOF
                                 processing at runtime\n"));
   fprintf (file, _("\
   -z relro                    Create RELRO program header\n"));
+  fprintf (file, _("\
+  -z stacksize=SIZE           Set size of stack segment\n"));
 EOF
 fi
 


More information about the Binutils mailing list