mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-25 06:19:56 +00:00
fix(pie): align fixup_gdt_reloc() for aarch64
Do not skip upper limit address (__RW_END__) during relocation process. This align the code on what is done for AARCH32. Change-Id: I236368376276c2d3aa79adce13ca49f4023ce369 Signed-off-by: Yann Gautier <yann.gautier@st.com>
This commit is contained in:
parent
4f1a658f89
commit
5ecde2a271
1 changed files with 4 additions and 4 deletions
|
@ -532,9 +532,9 @@ func fixup_gdt_reloc
|
|||
cmp x3, x6
|
||||
b.lo 2f
|
||||
|
||||
/* Skip adding offset if address is >= upper limit */
|
||||
/* Skip adding offset if address is > upper limit */
|
||||
cmp x3, x7
|
||||
b.hs 2f
|
||||
b.hi 2f
|
||||
add x3, x3, x0
|
||||
str x3, [x1]
|
||||
|
||||
|
@ -582,9 +582,9 @@ func fixup_gdt_reloc
|
|||
cmp x4, x6
|
||||
b.lo 2f
|
||||
|
||||
/* Skip adding offset if r_addend entry is >= upper limit */
|
||||
/* Skip adding offset if r_addend entry is > upper limit */
|
||||
cmp x4, x7
|
||||
b.hs 2f
|
||||
b.hi 2f
|
||||
|
||||
add x4, x0, x4 /* Diff(S) + r_addend */
|
||||
str x4, [x3]
|
||||
|
|
Loading…
Add table
Reference in a new issue