summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorBernd Schmidt bernds_cb1@t-online.de <bernds@codesourcery.com>2011-03-02 18:22:01 +0100
committerBernd Schmidt <bernds@codesourcery.com>2011-03-05 18:09:46 +0100
commitf4eebb6146ea3f6917481d5d24f3d99e97236399 (patch)
treecf329d3c558f0ce8fb84950cb5f7f3aa333d5757 /Makerules
parent2a0c568ddc7b6b142dc049d8cc9cf32eb38e2321 (diff)
Add Makefile support for DSBT ELF.
This adds support for a new binary format, DSBT ELF, to the Makefiles. Every shared library is assigned a DSBT index, and the link.so macro is adjusted to ensure the correct linker argument is passed. Configuration and ldso support will follow in separate commits. Signed-off-by: Bernd Schmidt <bernds@codesourcery.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makerules b/Makerules
index 84eeaea19..3a4d566d4 100644
--- a/Makerules
+++ b/Makerules
@@ -297,7 +297,8 @@ cmd_hcompile.o = $(HOSTCC) $(filter-out $(PHONY),$<) $(DEPS-$(notdir $@)) -c -o
define link.so
$(Q)$(RM) $@ $@.$(2) $(dir $@)$(1)
@$(disp_ld)
- $(Q)$(CC) $(LDFLAGS-$(notdir $@)) -Wl,-soname=$(notdir $@).$(2) \
+ $(Q)$(CC) $(LDFLAGS-$(notdir $@)) $(LDFLAGS-y-$(@F)) \
+ -Wl,-soname=$(notdir $@).$(2) \
$(NOSTDLIB_CFLAGS) -o $(dir $@)$(1) $(START_FILE-$(notdir $@)) \
-Wl,--whole-archive $(firstword $^) -Wl,--no-whole-archive \
$(LIBS-$(notdir $@)) $(LIBGCC) $(END_FILE-$(notdir $@))