diff options
author | Yann Gautier <yann.gautier@st.com> | 2020-10-05 11:02:54 +0200 |
---|---|---|
committer | Yann Gautier <yann.gautier@foss.st.com> | 2021-04-21 15:05:57 +0200 |
commit | 4324a14bf548f5c56edc48128aba1aca0da2edf5 (patch) | |
tree | 04388b3318cc52a2109733f20ace432f3a653a6e /bl2 | |
parent | fb4f511f9b454ea9e03f6391790693a834d8a830 (diff) | |
download | trusted-firmware-a-4324a14bf548f5c56edc48128aba1aca0da2edf5.tar.gz |
Add PIE support for AARCH32
Only BL32 (SP_min) is supported at the moment, BL1 and BL2_AT_EL3 are just
stubbed with _pie_fixup_size=0.
The changes are an adaptation for AARCH32 on what has been done for
PIE support on AARCH64.
The RELA_SECTION is redefined for AARCH32, as the created section is
.rel.dyn and the symbols are .rel*.
Change-Id: I92bafe70e6b77735f6f890f32f2b637b98cf01b9
Signed-off-by: Yann Gautier <yann.gautier@st.com>
Diffstat (limited to 'bl2')
-rw-r--r-- | bl2/aarch32/bl2_el3_entrypoint.S | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bl2/aarch32/bl2_el3_entrypoint.S b/bl2/aarch32/bl2_el3_entrypoint.S index 2e851e61a4..7e855516d4 100644 --- a/bl2/aarch32/bl2_el3_entrypoint.S +++ b/bl2/aarch32/bl2_el3_entrypoint.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2017-2021, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -26,7 +26,8 @@ func bl2_entrypoint _secondary_cold_boot=!COLD_BOOT_SINGLE_CPU \ _init_memory=1 \ _init_c_runtime=1 \ - _exception_vectors=bl2_vector_table + _exception_vectors=bl2_vector_table \ + _pie_fixup_size=0 /* * Restore parameters of boot rom |