From 4a03ab07aa38872b0273189d23453693a46bab39 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Sat, 8 Nov 2008 22:39:35 +0000 Subject: [PATCH] initram is linked with very special options to ld. It is not immediately obvious that they are needed, so a comment to that effect will hopefully prevent accidental "cleanups" in the future when nobody remembers the history of that makefile rule anymore. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Peter Stuge git-svn-id: svn://coreboot.org/repository/coreboot-v3@988 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- arch/x86/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 41b668c2a7..0fa1a4f8e8 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -274,6 +274,8 @@ $(obj)/coreboot.initram $(obj)/coreboot.initram.map: $(obj)/stage0.init $(obj)/s $(Q)$(AS) $(obj)/initram_picwrapper.s -o $(obj)/initram_picwrapper.o $(Q)# initram links against stage0 $(Q)printf " LD $(subst $(shell pwd)/,,$(@))\n" + $(Q)# WARNING: Using -N (and not -n or others) for ld is essential to + $(Q)# get all important stuff into one segment! $(Q)$(LD) -Ttext 0 --entry main -N -R $(obj)/stage0-prefixed.o \ $(obj)/coreboot.initram_partiallylinked.o \ $(obj)/initram_picwrapper.o -o $(obj)/coreboot.initram