From ea6b2f28b08520ce19490faa5bd477ecf864c940 Mon Sep 17 00:00:00 2001 From: David McCullough Date: Fri, 14 Mar 2003 04:26:42 +0000 Subject: [PATCH] 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. --- elf2flt.ld | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.*) -- 2.11.0