diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2020-07-03 14:11:49 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2020-07-09 09:50:25 +0100 |
commit | e73ec755489afc9fcc75dfac6f06ac73e243e72a (patch) | |
tree | 635dc2c67343a29d7a5346981a58c8be9a471650 | |
parent | 463ba375f7b857995068403a4c63690d03162c00 (diff) | |
download | gcc-e73ec755489afc9fcc75dfac6f06ac73e243e72a.zip gcc-e73ec755489afc9fcc75dfac6f06ac73e243e72a.tar.gz gcc-e73ec755489afc9fcc75dfac6f06ac73e243e72a.tar.bz2 |
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.
-rw-r--r-- | libgcc/config/aarch64/lse.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libgcc/config/aarch64/lse.S b/libgcc/config/aarch64/lse.S index f3ccf5c..9e2acae 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 |