[gcc r11-1962] aarch64: Fix noexecstack note in libgcc
Szabolcs Nagy
nsz@gcc.gnu.org
Thu Jul 9 08:51:47 GMT 2020
https://gcc.gnu.org/g:e73ec755489afc9fcc75dfac6f06ac73e243e72a
commit r11-1962-ge73ec755489afc9fcc75dfac6f06ac73e243e72a
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date: Fri Jul 3 14:11:49 2020 +0100
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.
2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
libgcc/ChangeLog:
* config/aarch64/lse.S: Add stack note.
Diff:
---
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
More information about the Gcc-cvs
mailing list