From: Szabolcs Nagy Date: Fri, 3 Jul 2020 13:09:25 +0000 (+0100) Subject: aarch64: Fix noexecstack note in libitm X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=463ba375f7b857995068403a4c63690d03162c00;p=gcc.git aarch64: Fix noexecstack note in libitm sjlj.S only had the note on Linux, but it is supposed to have it on FreeBSD too. 2020-07-09 Szabolcs Nagy libitm/ChangeLog: * config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined. --- diff --git a/libitm/config/aarch64/sjlj.S b/libitm/config/aarch64/sjlj.S index 27626c1f378..5b97b973e27 100644 --- a/libitm/config/aarch64/sjlj.S +++ b/libitm/config/aarch64/sjlj.S @@ -87,6 +87,6 @@ GTM_longjmp: cfi_endproc .size GTM_longjmp, . - GTM_longjmp -#ifdef __linux__ +#if defined(__linux__) || defined(__FreeBSD__) .section .note.GNU-stack, "", %progbits #endif