]> git.wh0rd.org Git - elf2flt.git/commitdiff
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 7bb70863bdca1099f007c2865ffb288e84795f95..2aeb56064f9de3adadeaba0c2083a4f4726d7299 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.*)