Add flip-link for zero-cost stack overflow protection

This commit is contained in:
SupImDos 2022-09-09 21:40:32 +08:00
parent 92bba4e46f
commit 3ac447c720

View file

@ -7,6 +7,7 @@ rustflags = [
"-C", "link-arg=--nmagic", "-C", "link-arg=--nmagic",
"-C", "link-arg=-Tlink.x", "-C", "link-arg=-Tlink.x",
"-C", "link-arg=-Tdefmt.x", "-C", "link-arg=-Tdefmt.x",
"-C", "linker=flip-link",
"-C", "inline-threshold=5", "-C", "inline-threshold=5",
"-C", "no-vectorize-loops", "-C", "no-vectorize-loops",
] ]