From eee119de6a2bd0487e91daf69e7962351e2a3c9c Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 24 Jan 2011 18:23:01 +0100 Subject: Dummy software compiles; fixed a few linking issues. Also, most of the kernel syscalls are missing. --- target-rules.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'target-rules.mk') diff --git a/target-rules.mk b/target-rules.mk index 5b976bc..1ce9487 100644 --- a/target-rules.mk +++ b/target-rules.mk @@ -11,12 +11,15 @@ TARGET_OBJS = $(addsuffix .o, $(basename $(TARGET_SRCS))) ifneq ($(TARGET),) TARGET_ELF = $(addsuffix .elf, $(basename $(TARGET))) TARGET_BIN = $(addsuffix .bin, $(basename $(TARGET))) +TARGET_MAP = $(addsuffix .map, $(basename $(TARGET))) TARGET_OBJS += $(addsuffix .o, $(basename $(TARGET))) endif $(TARGET_ELF): $(TARGET_OBJS) $(E) [TL] Linking $@ - $(Q)$(TARGET_LD) -o $@ $^ -T$(LDSCRIPT) $(LIBS) + $(Q)$(TARGET_LD) -Wl,--gc-sections -Wl,-O3 -Wl,-Map=$(TARGET_MAP) -o $@ $^ -T$(LDSCRIPT) $(LIBS) + +$(TARGET_MAP): $(TARGET_ELF) $(TARGET_BIN): $(TARGET_ELF) $(E) [TB] Creating $@ -- cgit v1.2.3