Skip to content

Commit 33dc7e4

Browse files
committed
asm: add .note.GNU-stack section for non-exec stack
With this in place, we no-longer see warnings like the following: ```bash /usr/lib/gcc-cross/arm-linux-gnueabihf/12/../../../../arm-linux-gnueabihf/bin/ld: warning: field_10x26_arm.o: missing .note.GNU-stack section implies executable stack /usr/lib/gcc-cross/arm-linux-gnueabihf/12/../../../../arm-linux-gnueabihf/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker ``` Should close #1434.
1 parent c891c5c commit 33dc7e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/asm/field_10x26_arm.s

+1
Original file line numberDiff line numberDiff line change
@@ -913,3 +913,4 @@ secp256k1_fe_sqr_inner:
913913
ldmfd sp!, {r4, r5, r6, r7, r8, r9, r10, r11, pc}
914914
.size secp256k1_fe_sqr_inner, .-secp256k1_fe_sqr_inner
915915

916+
.section .note.GNU-stack,"",%progbits

0 commit comments

Comments
 (0)