diff mbox

[aarch64] aarch64-linux: output .note.GNU-stack

Message ID 20140514213002.GM26038@redacted.bos.redhat.com
State New
Headers show

Commit Message

Kyle McMartin May 14, 2014, 9:30 p.m. UTC
The toolchain would like PT_GNU_STACK in our objects for all
architectures to make it explicit whether we are requesting an
executable stack or not.

2014-05-14  Kyle McMartin  <kyle@redhat.com>

        * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): define
        to file_end_indicate_exec_stack for .note.GNU-stack emission.

Comments

Marcus Shawcroft May 15, 2014, 8:06 a.m. UTC | #1
On 14 May 2014 22:30, Kyle McMartin <kmcmarti@redhat.com> wrote:
> The toolchain would like PT_GNU_STACK in our objects for all
> architectures to make it explicit whether we are requesting an
> executable stack or not.
>
> 2014-05-14  Kyle McMartin  <kyle@redhat.com>
>
>         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): define
>         to file_end_indicate_exec_stack for .note.GNU-stack emission.
>
> --- a/gcc/config/aarch64/aarch64-linux.h
> +++ b/gcc/config/aarch64/aarch64-linux.h
> @@ -44,4 +44,6 @@
>      }                                          \
>    while (0)
>
> +#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
> +
>  #endif  /* GCC_AARCH64_LINUX_H */

OK, thanks.

Can you back port this to 4.9 and 4.8 ?

/Marcus
diff mbox

Patch

--- a/gcc/config/aarch64/aarch64-linux.h
+++ b/gcc/config/aarch64/aarch64-linux.h
@@ -44,4 +44,6 @@ 
     }						\
   while (0)
 
+#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
+
 #endif  /* GCC_AARCH64_LINUX_H */