Add support for GCC stack protection
[project/bcm63xx/atf.git] / bl2u / bl2u.ld.S
index 91e8556edebe89dc242fecd0cbd52e785be8f412..aebf84f4e7731fa3b9844a75df2ef14ca62351e8 100644 (file)
@@ -86,6 +86,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*)