diff options
Diffstat (limited to 'board-js2x')
-rw-r--r-- | board-js2x/llfw/stage2.lds | 3 | ||||
-rw-r--r-- | board-js2x/llfw/stage2_head.S | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/board-js2x/llfw/stage2.lds b/board-js2x/llfw/stage2.lds index f91f065..e6315c3 100644 --- a/board-js2x/llfw/stage2.lds +++ b/board-js2x/llfw/stage2.lds @@ -45,7 +45,8 @@ SECTIONS { __bss_end = .; __bss_size = (__bss_end - __bss_start); - __toc_start = .; + . = ALIGN(256); + __toc_start = DEFINED (.TOC.) ? .TOC. : ADDR (.got) + 0x8000; .got : { *(.toc .got) diff --git a/board-js2x/llfw/stage2_head.S b/board-js2x/llfw/stage2_head.S index 5460bfe..f3f5e0c 100644 --- a/board-js2x/llfw/stage2_head.S +++ b/board-js2x/llfw/stage2_head.S @@ -79,8 +79,6 @@ bsscdone: /* ------------------------------------ */ ASM_ENTRY(toc_init) LOAD64(r2, __toc_start) - addi r2,r2,0x4000 - addi r2,r2,0x4000 blr /* ------------------------------------ */ |