summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--ld_script.txt44
2 files changed, 25 insertions, 23 deletions
diff --git a/Makefile b/Makefile
index e38869ca6..63233111f 100644
--- a/Makefile
+++ b/Makefile
@@ -229,7 +229,7 @@ endif
ifeq ($(NODEP),1)
$(C_BUILDDIR)/%.o: c_dep :=
else
-$(C_BUILDDIR)/%.o: c_dep = $(shell $(SCANINC) -I include -I tools/agbcc/include $(C_SUBDIR)/$*.c)
+$(C_BUILDDIR)/%.o: c_dep = $(shell [[ -f $(C_SUBDIR)/$*.c ]] && $(SCANINC) -I include -I tools/agbcc/include $(C_SUBDIR)/$*.c)
endif
ifeq ($(DINFO),1)
@@ -245,7 +245,7 @@ $(C_BUILDDIR)/%.o : $(C_SUBDIR)/%.c $$(c_dep)
ifeq ($(NODEP),1)
$(C_BUILDDIR)/%.o: c_asm_dep :=
else
-$(C_BUILDDIR)/%.o: c_asm_dep = $(shell $(SCANINC) -I "" $(C_SUBDIR)/$*.s)
+$(C_BUILDDIR)/%.o: c_asm_dep = $(shell [[ -f $(C_SUBDIR)/$*.s ]] && $(SCANINC) -I "" $(C_SUBDIR)/$*.s)
endif
$(C_BUILDDIR)/%.o: $(C_SUBDIR)/%.s $$(c_asm_dep)
diff --git a/ld_script.txt b/ld_script.txt
index 605d8f6be..4247fca4d 100644
--- a/ld_script.txt
+++ b/ld_script.txt
@@ -360,6 +360,7 @@ SECTIONS {
asm/librfu_intr.o(.text);
src/librfu_rfu.o(.text);
asm/librfu.o(.text);
+ src/libisagbprn.o(.text);
src/libagbsyscall.o(.text);
*libgcc.a:_call_via_rX.o(.text);
*libgcc.a:_divdi3.o(.text);
@@ -380,38 +381,39 @@ SECTIONS {
*libc.a:memset.o(.text);
*libc.a:strcmp.o(.text);
*libc.a:strcpy.o(.text);
- *libc.a:vfprintf.o(.text);
+ *libc.a:impure.o(.text);
*libc.a:vsprintf.o(.text);
+ *libc.a:vfprintf.o(.text);
+ *libc.a:wsetup.o(.text);
+ *libc.a:dtoa.o(.text);
+ *libc.a:fflush.o(.text);
+ *libc.a:findfp.o(.text);
+ *libc.a:freer.o(.text);
+ *libc.a:mtrim.o(.text);
*libc.a:fvwrite.o(.text);
+ *libc.a:fwalk.o(.text);
*libc.a:locale.o(.text);
- *libc.a:findfp.o(.text);
- *libc.a:fflush.o(.text);
- *libc.a:wsetup.o(.text);
+ *libc.a:makebuf.o(.text);
+ *libc.a:mallocr.o(.text);
*libc.a:mbtowc_r.o(.text);
- *libc.a:s_isinf.o(.text);
- *libc.a:s_isnan.o(.text);
*libc.a:memchr.o(.text);
- *libc.a:strlen.o(.text);
- *libc.a:dtoa.o(.text);
*libc.a:memmove.o(.text);
- *libc.a:stdio.o(.text);
+ *libc.a:mlock.o(.text);
*libc.a:mprec.o(.text);
- *libc.a:mallocr.o(.text);
- *libc.a:fwalk.o(.text);
- *libc.a:freer.o(.text);
- *libc.a:makebuf.o(.text);
- *libc.a:readr.o(.text);
+ *libc.a:s_isinf.o(.text);
+ *libc.a:s_isnan.o(.text);
+ *libc.a:sbrkr.o(.text);
+ *libc.a:stdio.o(.text);
+ *libc.a:strlen.o(.text);
+ *libc.a:syscalls.o(.text);
*libc.a:writer.o(.text);
- *libc.a:lseekr.o(.text);
- *libc.a:closer.o(.text);
*libc.a:callocr.o(.text);
- *libc.a:sbrkr.o(.text);
- *libc.a:mlock.o(.text);
+ *libc.a:closer.o(.text);
+ *libc.a:errno.o(.text);
*libc.a:fstatr.o(.text);
*libc.a:libcfunc.o(.text);
- *libc.a:syscalls.o(.text);
- *libc.a:errno.o(.text);
- src/libisagbprn.o(.text);
+ *libc.a:lseekr.o(.text);
+ *libc.a:readr.o(.text);
} =0
.rodata :