public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/21098] New: .note.GNU-stack emitted
@ 2005-04-19  0:59 amodra at bigpond dot net dot au
  2005-04-19  1:02 ` [Bug target/21098] " amodra at bigpond dot net dot au
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: amodra at bigpond dot net dot au @ 2005-04-19  0:59 UTC (permalink / raw)
  To: gcc-bugs

.note.GNU-stack sections emitted in object files control whether the linker
emits a PT_GNU_STACK header.  This header in turn tells ld.so and the kernel
whether the stack should be executable.  The linker emits the PT_GNU_STACK
header if any input object file has a .note.GNU-stack section, and the header
has the exec bit set if any .note.GNU-stack section is SEC_CODE, *or if any file
is missing the note*.  ie. Linking a mix of files, some of which have the note
section and others that don't, result in PT_GNU_STACK asking for an exec stack.

On powerpc64, nested functions do not require a trampoline on the stack, so
there is no need for an executable stack.  gcc should either emit
.note.GNU-stack section on all object files (remove !defined __powerpc64__ in
the last few lines of config/rs6000/ppc-asm.h), or better, not emit any notes
(not call file_end_indicate_exec_stack when -m64).

-- 
           Summary: .note.GNU-stack emitted
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: amodra at bigpond dot net dot au
        ReportedBy: amodra at bigpond dot net dot au
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc64-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21098


^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <bug-21098-1057@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2005-11-23 20:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-19  0:59 [Bug target/21098] New: .note.GNU-stack emitted amodra at bigpond dot net dot au
2005-04-19  1:02 ` [Bug target/21098] " amodra at bigpond dot net dot au
2005-04-19  7:07 ` cvs-commit at gcc dot gnu dot org
2005-04-19 19:51 ` [Bug target/21098] [3.4/4.0 only] " pinskia at gcc dot gnu dot org
2005-04-20  1:19 ` pinskia at gcc dot gnu dot org
2005-04-29  0:20 ` cvs-commit at gcc dot gnu dot org
2005-04-29  0:29 ` [Bug target/21098] [3.4 " pinskia at gcc dot gnu dot org
2005-04-29  0:32 ` cvs-commit at gcc dot gnu dot org
2005-04-29  0:34 ` [Bug target/21098] " amodra at bigpond dot net dot au
2005-05-03 23:03 ` cvs-commit at gcc dot gnu dot org
2005-05-06 12:00 ` cvs-commit at gcc dot gnu dot org
     [not found] <bug-21098-1057@http.gcc.gnu.org/bugzilla/>
2005-11-23 20:47 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).