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; 11+ 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] 11+ messages in thread

* [Bug target/21098] .note.GNU-stack emitted
  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 ` amodra at bigpond dot net dot au
  2005-04-19  7:07 ` cvs-commit at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: amodra at bigpond dot net dot au @ 2005-04-19  1:02 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-19 01:01:22
               date|                            |


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/21098] .note.GNU-stack emitted
  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
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-19  7:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-04-19 07:07 -------
Subject: Bug 21098

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	amodra@gcc.gnu.org	2005-04-19 07:07:11

Modified files:
	gcc            : ChangeLog 
	gcc/config/rs6000: linux64.h rs6000.c 

Log message:
	PR target/21098
	* config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
	* config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8358&r2=2.8359
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/linux64.h.diff?cvsroot=gcc&r1=1.74&r2=1.75
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/rs6000.c.diff?cvsroot=gcc&r1=1.808&r2=1.809



-- 


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/21098] [3.4/4.0 only] .note.GNU-stack emitted
  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 ` pinskia at gcc dot gnu dot org
  2005-04-20  1:19 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-19 19:51 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|.note.GNU-stack emitted     |[3.4/4.0 only] .note.GNU-
                   |                            |stack emitted
   Target Milestone|---                         |4.0.0


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/21098] [3.4/4.0 only] .note.GNU-stack emitted
  2005-04-19  0:59 [Bug target/21098] New: .note.GNU-stack emitted amodra at bigpond dot net dot au
                   ` (2 preceding siblings ...)
  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
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-20  1:19 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.0                       |4.0.1


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/21098] [3.4/4.0 only] .note.GNU-stack emitted
  2005-04-19  0:59 [Bug target/21098] New: .note.GNU-stack emitted amodra at bigpond dot net dot au
                   ` (3 preceding siblings ...)
  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
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-29  0:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-04-29 00:20 -------
Subject: Bug 21098

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	amodra@gcc.gnu.org	2005-04-29 00:19:57

Modified files:
	gcc            : ChangeLog 
	gcc/config/rs6000: linux64.h rs6000.c 

Log message:
	PR target/21098
	* config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
	* config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.203&r2=2.7592.2.204
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/linux64.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.74&r2=1.74.10.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/rs6000.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.788.2.5&r2=1.788.2.6



-- 


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/21098] [3.4 only] .note.GNU-stack emitted
  2005-04-19  0:59 [Bug target/21098] New: .note.GNU-stack emitted amodra at bigpond dot net dot au
                   ` (4 preceding siblings ...)
  2005-04-29  0:20 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-29  0:29 ` pinskia at gcc dot gnu dot org
  2005-04-29  0:32 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-29  0:29 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.1                       |3.4.4


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/21098] [3.4 only] .note.GNU-stack emitted
  2005-04-19  0:59 [Bug target/21098] New: .note.GNU-stack emitted amodra at bigpond dot net dot au
                   ` (5 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-29  0:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-04-29 00:32 -------
Subject: Bug 21098

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	amodra@gcc.gnu.org	2005-04-29 00:32:05

Modified files:
	gcc            : ChangeLog 
	gcc/config/rs6000: linux64.h rs6000.c 

Log message:
	PR target/21098
	* config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
	* config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.844&r2=2.2326.2.845
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/linux64.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.53.4.11&r2=1.53.4.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/rs6000.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.576.2.44&r2=1.576.2.45



-- 


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/21098] .note.GNU-stack emitted
  2005-04-19  0:59 [Bug target/21098] New: .note.GNU-stack emitted amodra at bigpond dot net dot au
                   ` (6 preceding siblings ...)
  2005-04-29  0:32 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-29  0:34 ` 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
  9 siblings, 0 replies; 11+ messages in thread
From: amodra at bigpond dot net dot au @ 2005-04-29  0:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From amodra at bigpond dot net dot au  2005-04-29 00:34 -------
Fixed on all active branches

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to work|4.0.1 4.1.0                 |3.4.4 4.0.1 4.1.0
         Resolution|                            |FIXED
            Summary|[3.4 only] .note.GNU-stack  |.note.GNU-stack emitted
                   |emitted                     |
   Target Milestone|3.4.4                       |4.0.1


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/21098] .note.GNU-stack emitted
  2005-04-19  0:59 [Bug target/21098] New: .note.GNU-stack emitted amodra at bigpond dot net dot au
                   ` (7 preceding siblings ...)
  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
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-03 23:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-03 23:03 -------
Subject: Bug 21098

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-rhl-branch
Changes by:	jakub@gcc.gnu.org	2005-05-03 23:02:54

Modified files:
	gcc            : ChangeLog 
	gcc/config/rs6000: linux64.h rs6000.c 

Log message:
	Revert:
	2005-04-29  Alan Modra  <amodra@bigpond.net.au>
	PR target/21098
	* config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
	* config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-rhl-branch&r1=2.7592.2.10.2.26&r2=2.7592.2.10.2.27
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/linux64.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-rhl-branch&r1=1.74.12.1&r2=1.74.12.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/rs6000.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-rhl-branch&r1=1.788.4.8&r2=1.788.4.9



-- 


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug target/21098] .note.GNU-stack emitted
  2005-04-19  0:59 [Bug target/21098] New: .note.GNU-stack emitted amodra at bigpond dot net dot au
                   ` (8 preceding siblings ...)
  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
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-06 12:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-06 12:00 -------
Subject: Bug 21098

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-rhl-branch
Changes by:	jakub@gcc.gnu.org	2005-05-06 11:59:51

Modified files:
	gcc            : ChangeLog 
	gcc/config/rs6000: linux64.h rs6000.c 

Log message:
	Revert:
	2005-04-29  Alan Modra  <amodra@bigpond.net.au>
	PR target/21098
	* config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
	* config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=2.2326.2.399.2.75&r2=2.2326.2.399.2.76
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/linux64.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=1.53.4.6.2.5&r2=1.53.4.6.2.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/rs6000.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=1.576.2.15.2.16&r2=1.576.2.15.2.17



-- 


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-05-06 12:00 UTC | newest]

Thread overview: 11+ 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

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).