mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00
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:
parent
e018bf719b
commit
4f1a658f89
1 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue