aarch64: Fix noexecstack note in libitm
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 3 Jul 2020 13:09:25 +0000 (14:09 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 9 Jul 2020 08:50:25 +0000 (09:50 +0100)
sjlj.S only had the note on Linux, but it is supposed
to have it on FreeBSD too.

2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>

libitm/ChangeLog:

* config/aarch64/sjlj.S: Add stack note if __FreeBSD__ is defined.

libitm/config/aarch64/sjlj.S

index 27626c1f378012999ff3febb55f368dd10e754c3..5b97b973e27cab777c42cedb9258964fcccc562c 100644 (file)
@@ -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