File tree Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1313 * http://www.boost.org/LICENSE_1_0.txt)
1414 * /
1515
16- #if (__linux__ || __FreeBSD__ || __NetBSD__ || __OpenBSD__ || __DragonFly__) && __ELF__
16+ #if __ELF__
1717/ *
1818 * Mark the resulting object file as not requiring execution permissions on
1919 * stack memory. The absence of this section would mark the whole resulting
2020 * library as requiring an executable stack , making it impossible to
21- * dynamically load druntime on several Linux platforms where this is
22- * forbidden due to security policies.
21+ * dynamically load druntime on several platforms where this is forbidden
22+ * due to security policies.
2323 * /
2424. section .note.GNU - stack , "" , %progbits
2525#endif
Original file line number Diff line number Diff line change 66 * Authors: Denis Feklushkin
77 */
88
9+ #if __ELF__
10+ /*
11+ * Mark the resulting object file as not requiring execution permissions on
12+ * stack memory. The absence of this section would mark the whole resulting
13+ * library as requiring an executable stack, making it impossible to
14+ * dynamically load druntime on several platforms where this is forbidden
15+ * due to security policies.
16+ */
17+ .section .note.GNU-stack,"",%progbits
18+ #endif
19+
20+
921#if defined(__riscv)
1022
1123// For save/load a register in memory, regardless of the size of machine register bit size
Original file line number Diff line number Diff line change 66 * License: <a href= "http://www.boost.org/LICENSE_1_0.txt" >Boost License 1 . 0 </a>.
77 * /
88
9+ #if __ELF__
910/ *
1011 * Mark the resulting object file as not requiring execution
1112 * permissions on stack memory. The absence of this section would mark
1213 * the whole resulting library as requiring an executable stack ,
13- * making it impossible to dynamically load druntime on several Linux
14+ * making it impossible to dynamically load druntime on several
1415 * platforms where this is forbidden due to security policies.
1516 * /
16-
17- #if (defined(__linux__) || defined(__FreeBSD__)) && defined(__ELF__)
1817. section .note.GNU - stack , "" , %progbits
1918.previous
2019#endif
You can’t perform that action at this time.
0 commit comments