bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/29072] ld silently make the program stack area executable if nes


From: nickc at redhat dot com
Subject: [Bug ld/29072] ld silently make the program stack area executable if nested function is used
Date: Wed, 20 Apr 2022 12:44:37 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=29072

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #8 from Nick Clifton <nickc at redhat dot com> ---
Hi Guys,

  Right - I have applied a patch (also uploaded to this PR) which adds 3 new
  warnings to the linker:

warning: <obj>: requires executable stack (because the .note.GNU-stack section
is executable)

warning: <obj>: missing .note.GNU-stack section implies executable stack

warning: enabling an executable stack because of -z execstack command line
option

  The first two are enabled by default, but the third one is only generated
  if the new --warn-execstack command line option is used.  The first two
  can also be suppressed by using the --no-warn-execstack option.

  The wording and option names were chosen to be similar to the ones used/
  generated by the GOLD linker.  (Although GOLD does not generate the third
  type of warning message).

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]