ia64/xen-unstable

changeset 16373:5e4d4934a5d7

tools: Avoid -nostdlib argument to $(LD).
This interacts badly with GNU ld on Solaris.
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Tue Nov 13 17:57:22 2007 +0000 (2007-11-13)
parents 37be0bb60518
children ab516ca6e984
files tools/firmware/hvmloader/Makefile tools/firmware/vmxassist/Makefile tools/tests/blowfish.mk
line diff
     1.1 --- a/tools/firmware/hvmloader/Makefile	Tue Nov 13 17:28:44 2007 +0000
     1.2 +++ b/tools/firmware/hvmloader/Makefile	Tue Nov 13 17:57:22 2007 +0000
     1.3 @@ -41,7 +41,7 @@ all: hvmloader
     1.4  
     1.5  hvmloader: roms.h acpi/acpi.a $(SRCS)
     1.6  	$(CC) $(CFLAGS) -c $(SRCS)
     1.7 -	$(LD) $(LDFLAGS_DIRECT) -nostdlib -N -Ttext $(LOADADDR) -o hvmloader.tmp $(OBJS) acpi/acpi.a
     1.8 +	$(LD) $(LDFLAGS_DIRECT) -N -Ttext $(LOADADDR) -o hvmloader.tmp $(OBJS) acpi/acpi.a
     1.9  	$(OBJCOPY) hvmloader.tmp hvmloader
    1.10  	rm -f hvmloader.tmp
    1.11  
     2.1 --- a/tools/firmware/vmxassist/Makefile	Tue Nov 13 17:28:44 2007 +0000
     2.2 +++ b/tools/firmware/vmxassist/Makefile	Tue Nov 13 17:57:22 2007 +0000
     2.3 @@ -46,7 +46,7 @@ all: vmxassist.bin
     2.4  
     2.5  vmxassist.bin: vmxassist.ld $(OBJECTS)
     2.6  	$(CPP) $(DEFINES) vmxassist.ld > vmxassist.tmp
     2.7 -	$(LD) -o vmxassist $(LDFLAGS_DIRECT) -nostdlib --fatal-warnings -N -T vmxassist.tmp $(OBJECTS)
     2.8 +	$(LD) -o vmxassist $(LDFLAGS_DIRECT) --fatal-warnings -N -T vmxassist.tmp $(OBJECTS)
     2.9  	nm -n vmxassist > vmxassist.sym
    2.10  	$(OBJCOPY) -p -O binary -R .note -R .comment -R .bss -S --gap-fill=0 vmxassist vmxassist.tmp
    2.11  	dd if=vmxassist.tmp of=vmxassist.bin ibs=512 conv=sync
     3.1 --- a/tools/tests/blowfish.mk	Tue Nov 13 17:28:44 2007 +0000
     3.2 +++ b/tools/tests/blowfish.mk	Tue Nov 13 17:57:22 2007 +0000
     3.3 @@ -10,13 +10,12 @@ CFLAGS  += $(call cc-option,$(CC),-fno-s
     3.4  CFLAGS  += $(call cc-option,$(CC),-fno-stack-protector-all,)
     3.5  
     3.6  CFLAGS  += -fno-builtin -O2 -msoft-float
     3.7 -LDFLAGS  = -nostdlib -Wl,-N -Wl,-Ttext -Wl,0x100000
     3.8  
     3.9  .PHONY: all
    3.10  all: blowfish.bin
    3.11  
    3.12  blowfish.bin: blowfish.c
    3.13  	$(CC) $(CFLAGS) -c blowfish.c
    3.14 -	$(CC) $(CFLAGS) $(LDFLAGS) -o blowfish.tmp blowfish.o
    3.15 +	$(LD) $(LDFLAGS_DIRECT) -N -Ttext 0x100000 -o blowfish.tmp blowfish.o
    3.16  	$(OBJCOPY) -O binary blowfish.tmp blowfish.bin
    3.17  	rm -f blowfish.tmp