[U-Boot] [TEST] arm:board_init_f(): mirror BSS and check after each init_fnc()
Albert ARIBAUD
albert.aribaud at free.fr
Wed Dec 1 13:47:18 CET 2010
Le 01/12/2010 13:35, Wolfgang Denk a écrit :
> Dear Albert ARIBAUD,
>
> In message<4CF63345.9020006 at free.fr> you wrote:
>>> I can not recommend a proper place for all boards cause this parameter
>>> is highly is board specific.
>>
>> Understood -- each board maintainer must select an adapted location
>> for the mirror.
>
> I'm not conviced that ech board maintainer should do that, and I
> somewhat doubt the approach taken.
>
> The main purpose of the patch (as I see it) is to find out which
> functions might be candidates to write to bss too early. There is not
> that much board specific code involved there.
>
> If we can generate a slist of functions that are called before
> relocation, we can use nm to check if these refernce any sumbols in
> bss. We could even generate black / white lists.
Just to clarify:
I see Andreas' proposal as a debug tool, notintended to ever be applied
to a branch, but to be kept and applied to local developer repositories
during debug.
It seems you, Wolfgang, are considering this more like a tool that would
end up in the u-boot source tree and be e.g. run systematically after a
build, even if the builder had no intent of debugging. Am I right?
If so, then yes, a tool that would analyze the ELF binary would be a
good approach.
> Best regards,
>
> Wolfgang Denk
Amicalement,
--
Albert.
More information about the U-Boot
mailing list