From 41b2013fa25d51c274fc02f7b8c584ff7ea19458 Mon Sep 17 00:00:00 2001 From: dhewg Date: Sat, 16 Jul 2011 10:50:32 +0200 Subject: [PATCH] HACK: move up stage2 Only works with a big enought bootmem size --- stage2/Makefile | 2 +- stage2/stage2.ld | 4 ++-- stage2/stage2_native.ld | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/stage2/Makefile b/stage2/Makefile index 1cf0ac1..2ed63b4 100644 --- a/stage2/Makefile +++ b/stage2/Makefile @@ -69,7 +69,7 @@ stage2_native.elf: $(OBJS_NATIVE) stage2_native.ld @$(PREFIX)gcc $(LDFLAGS) -Wl,-T,stage2_native.ld -o tmp_$@ $(OBJS_NATIVE) @# move everything down to zero, it will relocate itself on startup @# this could be done in the linker script for lma, but Sony fails and needs it for vma. - @$(PREFIX)objcopy --adjust-vma -0xc00000 tmp_$@ $@ + @$(PREFIX)objcopy --adjust-vma -0x1c00000 tmp_$@ $@ @rm -f tmp_$@ stage2_raw.elf: $(OBJS) stage2.ld diff --git a/stage2/stage2.ld b/stage2/stage2.ld index 654d23d..5042efd 100644 --- a/stage2/stage2.ld +++ b/stage2/stage2.ld @@ -10,10 +10,10 @@ OUTPUT_FORMAT("elf64-powerpc") OUTPUT_ARCH(powerpc:common64) /* stage2 runs in realmode */ -__base = 0xc00000; +__base = 0x1c00000; /* address of the devicetree buffer */ -__devtree = 0xff0000; +__devtree = 0x1ff0000; ENTRY(_start) diff --git a/stage2/stage2_native.ld b/stage2/stage2_native.ld index c051b66..471c887 100644 --- a/stage2/stage2_native.ld +++ b/stage2/stage2_native.ld @@ -10,10 +10,10 @@ OUTPUT_FORMAT("elf64-powerpc") OUTPUT_ARCH(powerpc:common64) /* stage2 runs in realmode */ -__base = 0xc00000; +__base = 0x1c00000; /* address of the devicetree buffer */ -__devtree = 0xff0000; +__devtree = 0x1ff0000; ENTRY(_entry) -- 2.11.4.GIT