Skip to content
Snippets Groups Projects
Commit 8f4aad05 authored by Michal Sojka's avatar Michal Sojka
Browse files

lab8: Add -fno-stack-protector to compiler command line options

Combining compiler options -fstack-protector and -nostdlib results in
a program which always segfaults. Because some Linux distributions
enable stack protector by default, we should explicitly disable it.

Closes #252
parent 655bab35
No related branches found
No related tags found
No related merge requests found
Pipeline #56777 passed
......@@ -56,7 +56,7 @@ standardní knihovnu jako např. `libc`. Předpokládejte, že maximální hodno
Jinými slovy vytvořte program fungující podobně jako program níže, ale tak, aby
šel přeložit s přepínači kompilátoru
-ffreestanding -nostdlib -nostdinc -static -m32 -Wall -g -O2
-ffreestanding -fno-stack-protector -nostdlib -nostdinc -static -m32 -Wall -g -O2
```C
#include <stdio.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment