add -no-pie to remove useless code
This commit is contained in:
parent
054e31a020
commit
a5ccf7df95
2
Makefile
2
Makefile
@ -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
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
section .note.GNU-stack noalloc noexec nowrite progbits
|
|
||||||
section .text
|
section .text
|
||||||
global ft_strcpy
|
global ft_strcpy
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
section .note.GNU-stack noalloc noexec nowrite progbits
|
|
||||||
section .text
|
section .text
|
||||||
global ft_strlen
|
global ft_strlen
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
section .note.GNU-stack noalloc noexec progbits
|
|
||||||
section .text
|
section .text
|
||||||
global ft_write
|
global ft_write
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user