diff --git a/src/ft_create_elem.s b/src/ft_create_elem.s index 00ef175..a9c72b2 100644 --- a/src/ft_create_elem.s +++ b/src/ft_create_elem.s @@ -1,14 +1,14 @@ bits 64 +%include "ft_list.s" + extern malloc -%include "ft_list.s" +global ft_create_elem section .note.GNU-stack section .text - global ft_create_elem - ;typedef struct s_list ;{ ; void *data; diff --git a/src/ft_list_push_front.s b/src/ft_list_push_front.s index ccee2f3..30eba74 100644 --- a/src/ft_list_push_front.s +++ b/src/ft_list_push_front.s @@ -1,16 +1,15 @@ bits 64 +%include "ft_list.s" + extern malloc extern ft_create_elem -%include "ft_list.s" - +global ft_list_push_front section .note.GNU-stack section .text - global ft_list_push_front - ;typedef struct s_list ;{ ; void *data; diff --git a/src/ft_list_remove_if.s b/src/ft_list_remove_if.s index c7db79f..eb5a093 100644 --- a/src/ft_list_remove_if.s +++ b/src/ft_list_remove_if.s @@ -4,11 +4,11 @@ bits 64 extern free +global ft_list_remove_if + section .note.GNU-stack section .text - global ft_list_remove_if - ;typedef struct s_list ;{ ; void *data; diff --git a/src/ft_list_size.s b/src/ft_list_size.s index 13a1776..0a9f112 100644 --- a/src/ft_list_size.s +++ b/src/ft_list_size.s @@ -2,11 +2,11 @@ bits 64 %include "ft_list.s" +global ft_list_size + section .note.GNU-stack section .text - global ft_list_size - ;typedef struct s_list ;{ ; void *data; diff --git a/src/ft_list_sort.s b/src/ft_list_sort.s index 5259a3d..f2ae1bf 100644 --- a/src/ft_list_sort.s +++ b/src/ft_list_sort.s @@ -4,8 +4,9 @@ bits 64 section .note.GNU-stack +global ft_list_sort + section .text - global ft_list_sort ;typedef struct s_list ;{ diff --git a/src/ft_read.s b/src/ft_read.s index cba1d18..7e992db 100644 --- a/src/ft_read.s +++ b/src/ft_read.s @@ -2,11 +2,11 @@ bits 64 extern __errno_location +global ft_read + section .note.GNU-stack section .text - global ft_read - ; ssize_t ft_read(int fd, void *buf, size_t count); ft_read: xor rax, rax diff --git a/src/ft_strcmp.s b/src/ft_strcmp.s index 11adfbf..5b8e45a 100644 --- a/src/ft_strcmp.s +++ b/src/ft_strcmp.s @@ -1,10 +1,10 @@ bits 64 +global ft_strcmp + section .note.GNU-stack section .text - global ft_strcmp - ; int ft_strcmp(const char *s1, const char *s2); ft_strcmp: xor rax, rax diff --git a/src/ft_strcpy.s b/src/ft_strcpy.s index 94cb348..0db11c9 100644 --- a/src/ft_strcpy.s +++ b/src/ft_strcpy.s @@ -1,10 +1,10 @@ bits 64 +global ft_strcpy + section .note.GNU-stack section .text - global ft_strcpy - ; char *ft_strcpy(char *dst, const char *src); ft_strcpy: xor rcx, rcx diff --git a/src/ft_strdup.s b/src/ft_strdup.s index cd02e2f..7b49d4e 100644 --- a/src/ft_strdup.s +++ b/src/ft_strdup.s @@ -5,12 +5,12 @@ extern ft_strlen extern ft_strcpy extern malloc +global ft_strdup + section .note.GNU-stack -; char *ft_strdup(const char *s1); section .text - global ft_strdup - +; char *ft_strdup(const char *s1); ft_strdup: call ft_strlen push rdi diff --git a/src/ft_strlen.s b/src/ft_strlen.s index 2841dfa..abd3e05 100644 --- a/src/ft_strlen.s +++ b/src/ft_strlen.s @@ -1,10 +1,10 @@ bits 64 +global ft_strlen + section .note.GNU-stack section .text - global ft_strlen - ; size_t ft_strlen(const char *str); ft_strlen: xor rax, rax diff --git a/src/ft_write.s b/src/ft_write.s index 9304cfd..412c126 100644 --- a/src/ft_write.s +++ b/src/ft_write.s @@ -2,11 +2,11 @@ bits 64 extern __errno_location +global ft_write + section .note.GNU-stack section .text - global ft_write - ; ssize_t ft_write(int fd, const void *buf, size_t count); ft_write: mov rax, 1