bug-binutils
[Top][All Lists]
Advanced

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]