Browse Source

remove stack protector
dragonOS kernel doesn't need it

Yao Zhao 1 year ago
parent
commit
ba98506685
1 changed files with 1 additions and 0 deletions
  1. 1 0
      build.rs

+ 1 - 0
build.rs

@@ -8,6 +8,7 @@ fn compile_libunwind() {
     cfg.cpp_set_stdlib(None);
     cfg.cpp_set_stdlib(None);
     cfg.cpp(true);
     cfg.cpp(true);
     cfg.flag("-std=c++11");
     cfg.flag("-std=c++11");
+    cfg.flag("-fno-stack-protector");
     cfg.flag("-fno-exceptions");
     cfg.flag("-fno-exceptions");
     cfg.flag("-fno-rtti");
     cfg.flag("-fno-rtti");
     cfg.flag("-fstrict-aliasing");
     cfg.flag("-fstrict-aliasing");