From d0f42a99935928e56fce7c9943bac3b42e4b9bfe Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 19 Apr 2007 15:24:26 +0000 Subject: [PATCH] Document why we invoke gcc instead of directly invoking ld (trivial). Signed-off-by: Uwe Hermann Acked-by: Uwe Hermann git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@282 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- arch/x86/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 0dd257ff45..2c95cf900a 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -82,6 +82,9 @@ $(obj)/stage0.init: $(STAGE0_OBJ) $(Q)# 0x4000 - 0x100, we will end up with a 4 gig file. $(Q)# I wonder if that behavior is on purpose. + # Note: we invoke gcc (instead of ld directly) here, as we hit + # strange problems in the past. It seems that only gcc knows how to + # properly invoke ld. $(Q)printf " CC $(subst $(shell pwd)/,,$(@))\n" $(Q)$(CC) -nostdlib -static -T $(src)/arch/x86/ldscript.ld \ $(STAGE0_OBJ) -o $(obj)/stage0.o