From: Szabolcs Nagy Date: Fri, 3 Jul 2020 13:11:49 +0000 (+0100) Subject: aarch64: Fix noexecstack note in libgcc X-Git-Tag: releases/gcc-9.4.0~822 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be6028a7a6581176fd3568ce1d992e331fcac1bb;p=thirdparty%2Fgcc.git 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 libgcc/ChangeLog: * config/aarch64/lse.S: Add stack note. (cherry picked from commit e73ec755489afc9fcc75dfac6f06ac73e243e72a) --- diff --git a/libgcc/config/aarch64/lse.S b/libgcc/config/aarch64/lse.S index f7f1c19587be..c8a9f1ab0ddd 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