[U-Boot] [PATCH 4/4] Use ALIGN() in mpc85xx linker script

Trent Piepho tpiepho at freescale.com
Tue Oct 14 01:39:11 CEST 2008


It wasn't used in one instance where the end of the rotext section is
aligned to 256 bytes.

Maybe this alignment isn't necessary?  I have to wonder about the alignment
of the .data.init and .text.init sections too, since they don't appear to
even exist.

Signed-off-by: Trent Piepho <tpiepho at freescale.com>
---
 cpu/mpc85xx/u-boot.lds |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cpu/mpc85xx/u-boot.lds b/cpu/mpc85xx/u-boot.lds
index f7aedc0..8af35da 100644
--- a/cpu/mpc85xx/u-boot.lds
+++ b/cpu/mpc85xx/u-boot.lds
@@ -92,7 +92,7 @@ SECTIONS
   .dtors     : { *(.dtors)   }
 
   /* Read-write section, merged into data segment: */
-  . = (. + 0x00FF) & 0xFFFFFF00;
+  . = ALIGN(0x100);
   _erotext = .;
   PROVIDE (erotext = .);
   .reloc   :
-- 
1.5.4.1



More information about the U-Boot mailing list