Skip to content
Snippets Groups Projects
Commit 3e1e3f0a authored by Yann Gautier's avatar Yann Gautier Committed by Sebastien PASDELOUP
Browse files

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: default avatarYann Gautier <yann.gautier@foss.st.com>
Change-Id: I1166a59ac964ec8ad4e099cb3600e843afc71d82
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/225705


Reviewed-by: default avatarCITOOLS <MDG-smet-aci-reviews@list.st.com>
Reviewed-by: default avatarLionel DEBIEVE <lionel.debieve@foss.st.com>
Reviewed-by: default avatarSebastien PASDELOUP <sebastien.pasdeloup-ext@st.com>
parent a4c00d7f
No related branches found
No related tags found
No related merge requests found
...@@ -301,9 +301,9 @@ func fixup_gdt_reloc ...@@ -301,9 +301,9 @@ func fixup_gdt_reloc
cmp r4, r6 cmp r4, r6
blo 2f blo 2f
/* Skip adding offset if address is >= upper limit */ /* Skip adding offset if address is > upper limit */
cmp r4, r7 cmp r4, r7
bhs 2f bhi 2f
add r4, r0, r4 add r4, r0, r4
str r4, [r3] str r4, [r3]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment