Explorar el Código

Keep exported functions

Jeremy Soller hace 5 años
padre
commit
d7a859fb84
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      Makefile

+ 2 - 2
Makefile

@@ -127,7 +127,7 @@ $(BUILD)/debug/ld_so.o: $(SRC)
 	touch $@
 
 $(BUILD)/debug/ld_so: $(BUILD)/debug/ld_so.o $(BUILD)/debug/crti.o $(BUILD)/debug/libc.a $(BUILD)/debug/crtn.o
-	$(LD) --allow-multiple-definition --gc-sections $^ -o $@
+	$(LD) --allow-multiple-definition --gc-sections --gc-keep-exported $^ -o $@
 
 # Release targets
 
@@ -164,7 +164,7 @@ $(BUILD)/release/ld_so.o: $(SRC)
 	touch $@
 
 $(BUILD)/release/ld_so: $(BUILD)/release/ld_so.o $(BUILD)/release/crti.o $(BUILD)/release/libc.a $(BUILD)/release/crtn.o
-	$(LD) --allow-multiple-definition --gc-sections $^ -o $@
+	$(LD) --allow-multiple-definition --gc-sections --gc-keep-exported $^ -o $@
 
 # Other targets