Skip to content

Commit 61b9339

Browse files
committed
getarch/cpuid.S: Fix warning about executable stack
When using the GNU toolchain a warning is printed about an executible stack: /usr/lib64/gcc/.../x86_64-suse-linux/bin/ld: warning: /tmp/ccyG3xBB.o: missing .note.GNU-stack section implies executable stack [ 15s] /usr/lib64/gcc/.../x86_64-suse-linux/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker to prevent this warning, add: ``` .section .note.GNU-stack,"",@progbits ``` Signed-off-by: Egbert Eich <[email protected]>
1 parent ea6515c commit 61b9339

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: cpuid.S

+3
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,6 @@ _cpuid:
6565
.subsections_via_symbols
6666

6767
#endif
68+
#if defined(__ELF__) && defined(__linux__)
69+
.section .note.GNU-stack,"",@progbits
70+
#endif

0 commit comments

Comments
 (0)