Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1119885 - gcc doesn't emit GNU_STACK on aarch64 (Fedora Rawhide) binaries
Summary: gcc doesn't emit GNU_STACK on aarch64 (Fedora Rawhide) binaries
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: TRACKER-bugs-affecting-libguestfs
TreeView+ depends on / blocked
 
Reported: 2014-07-15 18:14 UTC by Richard W.M. Jones
Modified: 2014-09-29 16:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-29 16:12:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.