diff mbox series

[4/6] aarch64: Fix noexecstack note in libgcc

Message ID da51e53c820b93ff8e278325688170f4a8fb8fbc.1594224951.git.szabolcs.nagy@arm.com
State New
Headers show
Series aarch64: Fix target libraries for BTI [PR96001] | expand

Commit Message

Szabolcs Nagy July 8, 2020, 4:27 p.m. UTC
lse.S did not have GNU stack note, this may cause missing
PT_GNU_STACK in binaries on Linux and FreeBSD.

libgcc/ChangeLog:

2020-07-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>

	* config/aarch64/lse.S: Add stack note.
---
 libgcc/config/aarch64/lse.S | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Kyrylo Tkachov July 8, 2020, 4:43 p.m. UTC | #1
> -----Original Message-----
> From: Szabolcs Nagy <Szabolcs.Nagy@arm.com>
> Sent: 08 July 2020 17:27
> To: gcc-patches@gcc.gnu.org
> Cc: Richard Earnshaw <Richard.Earnshaw@arm.com>; Kyrylo Tkachov
> <Kyrylo.Tkachov@arm.com>
> Subject: [PATCH 4/6] aarch64: Fix noexecstack note in libgcc
> 
> lse.S did not have GNU stack note, this may cause missing
> PT_GNU_STACK in binaries on Linux and FreeBSD.
> 

Ok.
Thanks,
Kyrill

> libgcc/ChangeLog:
> 
> 2020-07-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
> 
> 	* config/aarch64/lse.S: Add stack note.
> ---
>  libgcc/config/aarch64/lse.S | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/libgcc/config/aarch64/lse.S b/libgcc/config/aarch64/lse.S
> index f3ccf5cf543..9e2acae806b 100644
> --- a/libgcc/config/aarch64/lse.S
> +++ b/libgcc/config/aarch64/lse.S
> @@ -274,3 +274,7 @@ STARTFN	NAME(LDNM)
> 
>  ENDFN	NAME(LDNM)
>  #endif
> +
> +#if defined(__linux__) || defined(__FreeBSD__)
> +.section .note.GNU-stack, "", %progbits
> +#endif
> --
> 2.17.1
diff mbox series

Patch

diff --git a/libgcc/config/aarch64/lse.S b/libgcc/config/aarch64/lse.S
index f3ccf5cf543..9e2acae806b 100644
--- a/libgcc/config/aarch64/lse.S
+++ b/libgcc/config/aarch64/lse.S
@@ -274,3 +274,7 @@  STARTFN	NAME(LDNM)
 
 ENDFN	NAME(LDNM)
 #endif
+
+#if defined(__linux__) || defined(__FreeBSD__)
+.section .note.GNU-stack, "", %progbits
+#endif