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))
CC = gcc
CFLAGS = -g
CFLAGS = -g -no-pie
AS = nasm
ASFLAGS = -f elf64 -g

View File

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

View File

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

View File

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