Ver Fonte

add non-executable GNU stack marking on ELF-linux

Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Xiaotian Wu há 1 ano atrás
pai
commit
98f7e9bd21
1 ficheiros alterados com 3 adições e 0 exclusões
  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