summaryrefslogtreecommitdiff
path: root/plat/mediatek/mt6795/bl31.ld.S
diff options
context:
space:
mode:
Diffstat (limited to 'plat/mediatek/mt6795/bl31.ld.S')
-rw-r--r--plat/mediatek/mt6795/bl31.ld.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/plat/mediatek/mt6795/bl31.ld.S b/plat/mediatek/mt6795/bl31.ld.S
index 472cd2e0..73d5fdf9 100644
--- a/plat/mediatek/mt6795/bl31.ld.S
+++ b/plat/mediatek/mt6795/bl31.ld.S
@@ -95,6 +95,11 @@ SECTIONS
*/
__RW_START__ = . ;
+ /*
+ * .data must be placed at a lower address than the stacks if the stack
+ * protector is enabled. Alternatively, the .data.stack_protector_canary
+ * section can be placed independently of the main .data section.
+ */
.data . : {
__DATA_START__ = .;
*(.data*)