Cleanup code

This commit is contained in:
Alex
2023-05-04 05:00:47 +03:00
parent 4953000370
commit f4ca629a8f
3 changed files with 31 additions and 22 deletions

View File

@@ -9,8 +9,6 @@ typedef void (*fct)(void);
extern fct __init_array_start[0], __init_array_end[0];
extern fct __fini_array_start[0], __fini_array_end[0];
// TODO: This is not working properly
void __libc_init_array(void)
{
for (fct *func = __init_array_start; func != __init_array_end; func++)

View File

@@ -33,6 +33,7 @@ build: $(OBJECT_NAME)
$(OBJECT_NAME): $(OBJ)
$(info Linking $@)
# $(CC) -nostdlib -shared -fPIC -fPIE -Wl,-soname,libc.so $(OBJ) -o $(OUTPUT_DIR)$@
$(AR) rcs $(OUTPUT_DIR)$@ $(OBJ)
%.o: %.c