]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: Fix noexecstack note in libgcc
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 3 Jul 2020 13:11:49 +0000 (14:11 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 13 Jul 2020 18:11:29 +0000 (19:11 +0100)
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.

(cherry picked from commit e73ec755489afc9fcc75dfac6f06ac73e243e72a)

libgcc/config/aarch64/lse.S

index f3ccf5cf54343c682666f5bdcf204c834a73ff33..9e2acae806b6c72f37dfcb28f2f1b4452174bf1a 100644 (file)
@@ -274,3 +274,7 @@ STARTFN     NAME(LDNM)
 
 ENDFN  NAME(LDNM)
 #endif
+
+#if defined(__linux__) || defined(__FreeBSD__)
+.section .note.GNU-stack, "", %progbits
+#endif