[PATCH 8/9] ARM: zImage: remove the static qualifier from global data variables

Tony Lindgren tony at atomide.com
Fri Apr 29 03:07:23 EDT 2011


* Nicolas Pitre <nico at fluxnic.net> [110428 15:47]:
> From: Nicolas Pitre <nicolas.pitre at linaro.org>
> 
> To be able to relocate the .bss section at run time independently from
> the rest of the code, we must make sure that no GOTOFF relocations are
> used with .bss symbols.  This usually means that no global variables can
> be marked static unless they're also const.
> 
> Let's remove the static qualifier from current offenders, or turn them
> into const variables when possible.  Next commit will ensure the build
> fails if one of those is reintroduced due to otherwise enforced coding
> standards for the kernel.
> 
> Signed-off-by: Nicolas Pitre <nicolas.pitre at linaro.org>

This fixes the DT data corruption issue I was seeing with the DT
append patch.

Tested-by: Tony Lindgren <tony at atomide.com>



More information about the linux-arm-kernel mailing list