Skip to content

Commit

Permalink
Update build_binaries.sh (Fortify). Added warning about NASM assemble…
Browse files Browse the repository at this point in the history
…r installation.

Installing the NASM assembler leads to the regeneration of the object files (.o) from the .asm sources
  • Loading branch information
teoberi committed May 21, 2024
1 parent 042ea07 commit fda3410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/binaries/build_binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ clang -m32 -o output/none_cl32 test.c -w -D_FORTIFY_SOURCE=0 -fno-stack-protecto
clang -m32 -c test.c -o output/rel_cl32.o
clang -m32 -shared -fPIC -o output/dso_cl32.so test.c -w -D_FORTIFY_SOURCE=2 -fstack-protector-strong -O2 -z relro -z now -z noexecstack -s

# Fortify source
# Fortify source (installation of NASM assembler is recommended)
nasm -f elf64 -o nolibc.o nolibc.asm
nasm -f elf32 -o nolibc32.o nolibc32.asm
gcc -o output/nolibc nolibc.o -w -nostdlib -no-pie -s
Expand Down

0 comments on commit fda3410

Please sign in to comment.