浏览代码

add non-executable GNU stack marking on ELF-linux

Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Xiaotian Wu 1 年之前
父节点
当前提交
98f7e9bd21
共有 1 个文件被更改,包括 3 次插入0 次删除
  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