From a5ccf7df956d10c4edb42745b0c904e38878cd9d Mon Sep 17 00:00:00 2001 From: starnakin Date: Mon, 2 Sep 2024 17:54:50 +0200 Subject: [PATCH] add -no-pie to remove useless code --- Makefile | 2 +- src/ft_strcpy.asm | 1 - src/ft_strlen.asm | 1 - src/ft_write.asm | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Makefile b/Makefile index b12f0f0..e365a9e 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/src/ft_strcpy.asm b/src/ft_strcpy.asm index f668e4e..43379e1 100644 --- a/src/ft_strcpy.asm +++ b/src/ft_strcpy.asm @@ -1,4 +1,3 @@ - section .note.GNU-stack noalloc noexec nowrite progbits section .text global ft_strcpy diff --git a/src/ft_strlen.asm b/src/ft_strlen.asm index 131132b..e70693c 100644 --- a/src/ft_strlen.asm +++ b/src/ft_strlen.asm @@ -1,4 +1,3 @@ - section .note.GNU-stack noalloc noexec nowrite progbits section .text global ft_strlen diff --git a/src/ft_write.asm b/src/ft_write.asm index f160552..9d2c76a 100644 --- a/src/ft_write.asm +++ b/src/ft_write.asm @@ -1,4 +1,3 @@ - section .note.GNU-stack noalloc noexec progbits section .text global ft_write