[efi] Fix off-by-one error in ARM .bss zeroing code in loader's _start

__bss_end should not be included in .bss zeroing code. Otherwise first 4
bytes of the section that follows .bss (in loader's case it's .sdata) are
overwritten by zero.

Reviewed by:	andrew
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D9108
This commit is contained in:
Oleksandr Tymoshenko 2017-01-10 20:08:21 +00:00
parent 30007e3fdc
commit 06212e0467

View File

@ -161,7 +161,7 @@ _start:
mov r2, #0
1: cmp r0, r1
bgt 2f
bge 2f
str r2, [r0], #4
b 1b
2: