diff options
Diffstat (limited to 'bl31/bl31.ld.S')
-rw-r--r-- | bl31/bl31.ld.S | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bl31/bl31.ld.S b/bl31/bl31.ld.S index 83ef7e7b..add65b8d 100644 --- a/bl31/bl31.ld.S +++ b/bl31/bl31.ld.S @@ -58,6 +58,15 @@ SECTIONS KEEP(*(rt_svc_descs)) __RT_SVC_DESCS_END__ = .; + /* + * Ensure 8-byte alignment for cpu_ops so that its fields are also + * aligned. Also ensure cpu_ops inclusion. + */ + . = ALIGN(8); + __CPU_OPS_START__ = .; + KEEP(*(cpu_ops)) + __CPU_OPS_END__ = .; + *(.vectors) __RO_END_UNALIGNED__ = .; /* @@ -69,6 +78,9 @@ SECTIONS __RO_END__ = .; } >RAM + ASSERT(__CPU_OPS_END__ > __CPU_OPS_START__, + "cpu_ops not defined for this platform.") + .data . : { __DATA_START__ = .; *(.data*) |