[U-Boot] [PATCH RFC] armv7: fixloop: don't fixup if location is NULL
Wolfgang Denk
wd at denx.de
Mon Jan 10 11:20:52 CET 2011
Dear Minkyu Kang,
In message <AANLkTimvXwEBjUXQuwFyRwHb8y-oX-goCvpFcL1_1CCu at mail.gmail.com> you wrote:
>
> Declared function pointer.
>
> int (*test_func)(void);
This results in a symbol in bss segment, right?
> And then, set to NULL at arch_cpu_init()
Such an assignment is illegal then. Bss has not been initalized before
relocation, and must not be accessed (neither read nor write).
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Extended Epstein-Heisenberg Principle: In an R & D orbit, only 2 of
the existing 3 parameters can be defined simultaneously. The parame-
ters are: task, time and resources ($).
More information about the U-Boot
mailing list