From: Muli Ben-Yehuda Subject: [PATCH] use target nm when cross compiling Date: Sat, 25 Feb 2006 19:47:36 +0200 Message-ID: <20060225174736.GN13262@granada.merseine.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT Return-path: Content-disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org Use the target nm(1) when cross compiling to pick the _end address from the Xen binary. Signed-Off-By: Muli Ben-Yehuda diff -r 968d45e437e2 -r cd26e2dbf711 xen/arch/x86/Makefile --- a/xen/arch/x86/Makefile Wed Feb 22 07:57:58 2006 +0200 +++ b/xen/arch/x86/Makefile Thu Feb 23 22:35:45 2006 +0200 @@ -44,7 +44,7 @@ default: $(TARGET) $(TARGET): $(TARGET)-syms boot/mkelf32 ./boot/mkelf32 $(TARGET)-syms $(TARGET) 0x100000 \ - `nm $(TARGET)-syms | sort | tail -n 1 | sed -e 's/^\([^ ]*\).*/0x\1/'` + `$(NM) $(TARGET)-syms | sort | tail -n 1 | sed -e 's/^\([^ ]*\).*/0x\1/'` $(CURDIR)/arch.o: $(OBJS) $(LD) $(LDFLAGS) -r -o $@ $(OBJS) -- Muli Ben-Yehuda http://www.mulix.org | http://mulix.livejournal.com/