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-devel

Re: [Xen-devel] Solaris build fix breaks Solaris

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Solaris build fix breaks Solaris
From: John Levon <levon@xxxxxxxxxxxxxxxxx>
Date: Tue, 13 Nov 2007 17:32:43 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 13 Nov 2007 09:33:43 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C35EDFD3.18456%Keir.Fraser@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20071112220639.GA2329@xxxxxxxxxxxxxxxxxxxxxxx> <C35EDFD3.18456%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Tue, Nov 13, 2007 at 05:00:03AM +0000, Keir Fraser wrote:

> > gld -melf_i386 -nostdlib -N -Ttext 0x100000 -o hvmloader.tmp hvmloader.o
> > mp_tables.o util.o smbios.o 32bitbios_support.o acpi/acpi.a
> > 
> > Specifying a linker script and asking for -nostdlib is obviously
> > contradictory. Removing $(LDFLAGS_DIRECT) fixes the problem.
> 
> That command line doesn't specify a linker script. And even if it did, how
> would that contradict -nostdlib? Also the -nostdlib is not in
> LDFLAGS_DIRECT: -melf_i386 is.

-melf_i386 translates to using an internal script, specifically
/usr/sfw/i386-pc-solaris2.11/lib/ldscripts/elf_i386.xc on
Solaris. Clearly -nostdlib means it can't be used, so it cannot find the
relevant script and gives up:

hatchback:~ $  gld -nostdlib -melf_i386 a.o
gld: cannot open linker script file ldscripts/elf_i386.xc: No such file or 
directory

Since the -nostdlib is presumably there for a reason, the correct fix
seems to be to remove $(LDFLAGS_DIRECT), right?

regards
john

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