]> xenbits.xensource.com Git - rumpuser-xen.git/commitdiff
Mini-OS: Link entire arch-specific lib into minios.o
authorMartin Lucina <martin@lucina.net>
Thu, 18 Dec 2014 12:01:15 +0000 (13:01 +0100)
committerMartin Lucina <martin@lucina.net>
Thu, 18 Dec 2014 12:14:27 +0000 (13:14 +0100)
The arch-specific lib contains code which external callers depend on;
ensure the whole archive is linked into minios.o.

Signed-off-by: Martin Lucina <martin@lucina.net>
xen/Makefile

index 5aba21f9a46d72e878c261a4918a52c4bac9e776..801f9c90ca6ff76cabebe7d4ff0196c3d5b58184 100644 (file)
@@ -93,7 +93,7 @@ arch_lib:
 # XXX: Note that HEAD_OBJ is linked into the final minios.o
 # This is so that we don't have to hunt for it in the rumprun build of app-tools.
 $(OBJ_DIR)/minios.o: links $(OBJS) arch_lib
-       $(LD) -r $(LDFLAGS) $(HEAD_OBJ) $(OBJS) $(LDARCHLIB) $(LDLIBS) -o $@
+       $(LD) -r $(LDFLAGS) $(HEAD_OBJ) $(OBJS) --whole-archive $(LDARCHLIB) --no-whole-archive $(LDLIBS) -o $@
        $(OBJCOPY) -w $(GLOBAL_PREFIXES) -G _start $@ $@
 
 $(OBJ_DIR)/minios.lds: $(LDSCRIPT)