summaryrefslogtreecommitdiff
path: root/arch/arm/kernel/.gitignore
diff options
context:
space:
mode:
authorTaras Kondratiuk <taras.kondratiuk@linaro.org>2013-11-08 18:29:29 +0000
committerVictor Kamensky <victor.kamensky@linaro.org>2014-02-12 16:35:32 -0800
commit0fba4e3d6e9f821c8340ca0242caa180aef56af2 (patch)
tree2ecc738105bf1a397f2c9d233752036341c5b511 /arch/arm/kernel/.gitignore
parent4b69be18e448a35ef1164faeac459fb2499f81e4 (diff)
By default if no fill symbol is given to .align directive in a code section it fills gap with NOPs. If previous fragment is not instruction-aligned, additional pre-alignment is done by zero bytes before NOPs. These zero bytes are marked as data by special symbol $d in symbol table. Unfortunately GAS assumes that there is only code in the code section so it "puts back" code symbol $a at the end of this pre-alignment. So if there is some data after alignment it will be interpreted as code and will be swapped back to LE for BE8 system during a final linking. If explicit fill value is given to .align, the NOP-padding code is skipped and symbol table does not get messed-up. So the workaround for this issue: Use explicit fill value if data should be aligned in the code section. Acked-by: Ben Dooks <ben.dooks@codethink.co.uk> Acked-by: Jon Medhurst <tixy@linaro.org> Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
Diffstat (limited to 'arch/arm/kernel/.gitignore')
0 files changed, 0 insertions, 0 deletions