Explorar o código

add non-executable GNU stack marking on ELF-linux

Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Xiaotian Wu hai 1 ano
pai
achega
98f7e9bd21
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      lib/loongarch64/efi_stub.S

+ 3 - 0
lib/loongarch64/efi_stub.S

@@ -1 +1,4 @@
 /* This stub is a stub to make the build happy */
+#if defined(__ELF__) && defined(__linux__)
+       .section .note.GNU-stack,"",%progbits
+#endif