mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
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 <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://coreboot.org/repository/coreboot-v3@988 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
a2d6080221
commit
4a03ab07aa
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue