Removed ld warning

This commit is contained in:
Roman Venediktov 2025-01-05 10:51:40 +01:00
parent 2dad84df22
commit bdd64b081b
2 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ runtime.o: runtime.c runtime.h
$(CC) $(PROD_FLAGS) -c runtime.c -o runtime.o $(CC) $(PROD_FLAGS) -c runtime.c -o runtime.o
printf.o: printf.S 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: clean:
$(RM) *.a *.o *~ negative_scenarios/*.err $(RM) *.a *.o *~ negative_scenarios/*.err

View file

@ -1488,8 +1488,8 @@ let build cmd prog =
in in
let compiler_flags, linker_flags = let compiler_flags, linker_flags =
match cmd#target_os with match cmd#target_os with
| Darwin -> ("-arch x86_64", "-ld_classic") | Darwin -> ("-arch x86_64 -Wa,--noexecstack", "-ld_classic")
| Linux -> ("", "") | Linux -> ("-Wa,--noexecstack", "")
in in
let debug_flags = if cmd#is_debug then "-g" else "" in let debug_flags = if cmd#is_debug then "-g" else "" in
match cmd#get_mode with match cmd#get_mode with