OSDN Git Service

arm expects the data segment on a 32 byte boundary, otherwise the GOT
authorDavid McCullough <davidm@snapgear.com>
Fri, 14 Mar 2003 04:26:42 +0000 (04:26 +0000)
committerDavid McCullough <davidm@snapgear.com>
Fri, 14 Mar 2003 04:26:42 +0000 (04:26 +0000)
entries can throw the alignment of the relocations out and things get
pretty ugly from there.

elf2flt.ld

index 7bb7086..2aeb560 100644 (file)
@@ -34,7 +34,7 @@ W_RODAT               *(.rodata.*)
                *(.call_table_data)
                *(.call_table_text)
 
-               . = ALIGN(0x10) ;
+               . = ALIGN(0x20) ;
                _etext = . ;
        } > flatmem
        .data : {
@@ -45,9 +45,9 @@ W_RODAT               *(.rodata.*)
                *(.got.plt)
                *(.got)
                FILL(0) ;
-               . = ALIGN(0x10) ; 
+               . = ALIGN(0x20) ; 
                LONG(-1)
-               . = ALIGN(0x10) ; 
+               . = ALIGN(0x20) ; 
 R_RODAT                *(.rodata)
 R_RODAT                *(.rodata1)
 R_RODAT                *(.rodata.*)