add -no-pie to remove useless code

This commit is contained in:
starnakin 2024-09-02 17:54:50 +02:00
parent 054e31a020
commit a5ccf7df95
4 changed files with 1 additions and 4 deletions

View File

@ -6,7 +6,7 @@ SRC := $(wildcard $(SRCDIR)/*.asm)
OBJ := $(patsubst $(SRCDIR)/%.asm,$(OBJDIR)/%.o,$(SRC)) OBJ := $(patsubst $(SRCDIR)/%.asm,$(OBJDIR)/%.o,$(SRC))
CC = gcc CC = gcc
CFLAGS = -g CFLAGS = -g -no-pie
AS = nasm AS = nasm
ASFLAGS = -f elf64 -g ASFLAGS = -f elf64 -g

View File

@ -1,4 +1,3 @@
section .note.GNU-stack noalloc noexec nowrite progbits
section .text section .text
global ft_strcpy global ft_strcpy

View File

@ -1,4 +1,3 @@
section .note.GNU-stack noalloc noexec nowrite progbits
section .text section .text
global ft_strlen global ft_strlen

View File

@ -1,4 +1,3 @@
section .note.GNU-stack noalloc noexec progbits
section .text section .text
global ft_write global ft_write