Bug 1119885

Summary: gcc doesn't emit GNU_STACK on aarch64 (Fedora Rawhide) binaries
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jakub, law
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-29 16:12:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 910269    

Description Richard W.M. Jones 2014-07-15 18:14:14 UTC
Description of problem:

$ touch test.c
$ gcc -S test.c
$ cat test.s

On != aarch64, gcc emits a GNU_STACK directive:

	.section	.note.GNU-stack,"",@progbits

On aarch64, this is missing, so all of our binaries probably
run with an executable stack.

Version-Release number of selected component (if applicable):

gcc-4.9.0-14.fc21.aarch64

How reproducible:

100%

Steps to Reproduce:
1. See above.

Comment 1 Richard W.M. Jones 2014-07-15 18:18:50 UTC
Looks as if we need this patch:

https://www.mail-archive.com/gcc-patches@gcc.gnu.org/msg79598.html

Comment 3 Jakub Jelinek 2014-09-29 16:12:44 UTC
Should be fixed in more contemporary rawhide/f21 gcc builds.