[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/16744] New: '-z noexecstack' does not add .note.GNU-stack for re
From: |
dh.herrmann at gmail dot com |
Subject: |
[Bug ld/16744] New: '-z noexecstack' does not add .note.GNU-stack for relocatables |
Date: |
Mon, 24 Mar 2014 09:41:31 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=16744
Bug ID: 16744
Summary: '-z noexecstack' does not add .note.GNU-stack for
relocatables
Product: binutils
Version: 2.24
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: dh.herrmann at gmail dot com
Hi
I use the following two lines to convert a binary file into an object file:
>
> ld -r -o file.o -z noexecstack --format=binary file.bin
> objcopy --rename-section .data=.rodata,alloc,load,readonly,data,contents
> file.o
>
That used to work well until someone reported that recent binutils versions no
longer honor the "-z noexecstack" flag in this example. I can do a bisect if
needed, all I know is that it doesn't work with >=2.23.
As a workaround, adding '--section-start=.note.GNU-stack=0' works, but isn't
that what "-z noexecstack" is supposed to do in that case?
If that change was intentional, what am I supposed to pass to "ld" with
"--format=binary" to mark it as not requiring an executable stack?
Thanks
David
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/16744] New: '-z noexecstack' does not add .note.GNU-stack for relocatables,
dh.herrmann at gmail dot com <=
- [Bug ld/16744] '-z noexecstack' does not add .note.GNU-stack for relocatables, hp at sourceware dot org, 2014/03/24
- [Bug ld/16744] '-z noexecstack' does not add .note.GNU-stack for relocatables, dh.herrmann at gmail dot com, 2014/03/26
- [Bug ld/16744] '-z noexecstack' does not add .note.GNU-stack for relocatables, vapier at gentoo dot org, 2014/03/27
- [Bug ld/16744] '-z noexecstack' does not add .note.GNU-stack for relocatables, dh.herrmann at gmail dot com, 2014/03/27
- [Bug ld/16744] '-z noexecstack' does not add .note.GNU-stack for relocatables, nickc at redhat dot com, 2014/03/27
- [Bug ld/16744] '-z noexecstack' does not add .note.GNU-stack for relocatables, dh.herrmann at gmail dot com, 2014/03/27
- [Bug ld/16744] '-z noexecstack' does not add .note.GNU-stack for relocatables, cvs-commit at gcc dot gnu.org, 2014/03/31
- [Bug ld/16744] '-z noexecstack' does not add .note.GNU-stack for relocatables, nickc at redhat dot com, 2014/03/31