fix(pie): do not skip __RW_END__ address during relocation

In fixup_gdt_reloc(), do not skip the last address (__RW_END__) for
dynamic relocations.
Else, the invalidation of the data done under _init_c_runtime in
el3_entrypoint_common macro will not be correct.

Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
Change-Id: I1166a59ac964ec8ad4e099cb3600e843afc71d82
This commit is contained in:
Yann Gautier 2021-10-26 18:13:22 +02:00 committed by Manish Pandey
parent e018bf719b
commit 4f1a658f89
1 changed files with 2 additions and 2 deletions

View File

@ -301,9 +301,9 @@ func fixup_gdt_reloc
cmp r4, r6
blo 2f
/* Skip adding offset if address is >= upper limit */
/* Skip adding offset if address is > upper limit */
cmp r4, r7
bhs 2f
bhi 2f
add r4, r0, r4
str r4, [r3]