From: David McCullough Date: Fri, 14 Mar 2003 04:26:42 +0000 (+0000) Subject: arm expects the data segment on a 32 byte boundary, otherwise the GOT X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ea6b2f28b08520ce19490faa5bd477ecf864c940;p=elf2flt.git arm expects the data segment on a 32 byte boundary, otherwise the GOT entries can throw the alignment of the relocations out and things get pretty ugly from there. --- diff --git a/elf2flt.ld b/elf2flt.ld index 7bb7086..2aeb560 100644 --- a/elf2flt.ld +++ b/elf2flt.ld @@ -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.*)