WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] MiniOS on ia64

To: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>
Subject: [Xen-ia64-devel] MiniOS on ia64
From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 11 Nov 2008 09:47:18 +0100
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 11 Nov 2008 00:47:25 -0800
Domainkey-signature: s=s768; d=fujitsu-siemens.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:From:To:Subject:Date:User-Agent:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding: Content-Disposition:Message-Id; b=YGqA89QdG9jXhME9RWxz+5WkUciU43jKVfJVQzddFP8U2Tkr+IQP490L j9XdtW/Xig/Mfff9DVV4YAv6mIkzmH+a58M9iAJnPT6npyiq5mpPuAsLY WHZGuasa5wc6bs9;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6 (enterprise 20070904.708012)
Hi Samuel,

MiniOS on ia64 is currently broken and I would get it compile again.
Beside some other problems I found the app.lds thing.
This doesn't work on ia64 because the special object mini-os_app.o is not 
linkable with the other objects.
What is needed is a object got compiled with the ia64 flags and than linked 
with app.lds script.

A simple solution could be to add an empty file maybe app_lds.c to the mini-os 
main directory. This will be compiled with ia64 flags and than linking it 
with app.lds.
The diff for the Makefile would be:

diff -r 5fd51e1e9c79 extras/mini-os/Makefile
--- a/extras/mini-os/Makefile   Wed Nov 05 10:57:21 2008 +0000
+++ b/extras/mini-os/Makefile   Tue Nov 11 09:11:00 2008 +0100
@@ -90,8 +90,8 @@ OBJS := $(filter-out $(OBJ_DIR)/daytime.
 OBJS := $(filter-out $(OBJ_DIR)/daytime.o, $(OBJS))
 endif
 
-$(OBJ_DIR)/$(TARGET)_app.o: $(APP_OBJS) app.lds
-       $(LD) -r -d $(LDFLAGS) -\( $^ -\) $(APP_LDLIBS) --undefined main -o $@
+$(OBJ_DIR)/$(TARGET)_app.o: $(APP_OBJS) app.lds app_lds.o
+       $(LD) -r -d $(LDFLAGS) -\( $^ -\) $(APP_LDLIBS) app_lds.o --undefined 
main -o $@
 
 $(OBJ_DIR)/$(TARGET): links $(OBJS) $(OBJ_DIR)/$(TARGET)_app.o arch_lib
        $(LD) -r $(LDFLAGS) $(HEAD_OBJ) $(OBJ_DIR)/$(TARGET)_app.o $(OBJS) 
$(LDARCHLIB) $(LDLIBS) -o $@.o


I didn't find any solution in changing your linker script app.lds to get the 
needed flags into the object mini-os_app.o to get it linked with ia64 
objects.
What do you think?
Thanks.

Dietmar.

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>