]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: zImage: make sure no GOTOFF relocs are used with .bss symbols
authorNicolas Pitre <nicolas.pitre@linaro.org>
Wed, 27 Apr 2011 18:54:39 +0000 (14:54 -0400)
committerNicolas Pitre <nico@fluxnic.net>
Sat, 7 May 2011 04:08:03 +0000 (00:08 -0400)
commit40fa4508cb235cf787ffbd33547f10ab319671d1
tree899c64ebde52465cfae79f4908602ae4883e4c1e
parent6add16ca2a54ed7ffe2bd199a6ad1f27a5db4011
ARM: zImage: make sure no GOTOFF relocs are used with .bss symbols

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.

To enforce this, suffice to fail the build whenever a private symbol
is allocated to .bss and list those symbols for convenience.

The user_stack and user_stack_end labels in head.S were converted into
non exported symbols to remove false positives.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/compressed/Makefile
arch/arm/boot/compressed/head.S