Skip to content

Commit

Permalink
Removed ld warning
Browse files Browse the repository at this point in the history
  • Loading branch information
e2e4b6b7 committed Jan 5, 2025
1 parent 2dad84d commit bdd64b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runtime/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ runtime.o: runtime.c runtime.h
$(CC) $(PROD_FLAGS) -c runtime.c -o runtime.o

printf.o: printf.S
$(CC) $(PROD_FLAGS) -x assembler-with-cpp -c -g printf.S -o printf.o
$(CC) $(PROD_FLAGS) -Wa,--noexecstack -x assembler-with-cpp -c -g printf.S -o printf.o

clean:
$(RM) *.a *.o *~ negative_scenarios/*.err
Expand Down
4 changes: 2 additions & 2 deletions src/X86_64.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1488,8 +1488,8 @@ let build cmd prog =
in
let compiler_flags, linker_flags =
match cmd#target_os with
| Darwin -> ("-arch x86_64", "-ld_classic")
| Linux -> ("", "")
| Darwin -> ("-arch x86_64 -Wa,--noexecstack", "-ld_classic")
| Linux -> ("-Wa,--noexecstack", "")
in
let debug_flags = if cmd#is_debug then "-g" else "" in
match cmd#get_mode with
Expand Down

0 comments on commit bdd64b0

Please sign in to comment.