From aa04cc7e5d7ab03d0d60fd28df1533638386c961 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 28 Nov 2008 10:16:36 +0000 Subject: [PATCH] update-comment-linker-script.patch Update the comment for linker script system in use now Signed-off-by: Andy Green --- qiboot/src/start_qi.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qiboot/src/start_qi.c b/qiboot/src/start_qi.c index 1fe7df2..f5c0223 100644 --- a/qiboot/src/start_qi.c +++ b/qiboot/src/start_qi.c @@ -52,9 +52,11 @@ void start_qi(void) * steppingstone SRAM for free. Now we pull the whole bootloader * image into SDRAM. * - * So this doesn't trash position-dependent code, we took care in the - * linker script to arrange all rodata* segment content to be in the - * first 4K region. + * This code and the .S files are arranged by the linker script to + * expect to run from 0x0. But the linker script has told everything + * else to expect to run from 0x33000000+. That's why we are going to + * be able to copy this code and not have it crash when we run it from + * there. */ /* We randomly pull 24KBytes of bootloader */