9
0
Fork 0

ARM ep93xx: Get rid of special handling in linker file

The ep93xx needs a special value at offset 0x1000. Rather than
do special handling in the linker file add aa header section
as done on i.MX.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2012-07-08 16:44:34 +02:00
parent a5dd9f8eca
commit 218dffea80
5 changed files with 20 additions and 7 deletions

View File

@ -41,11 +41,6 @@ SECTIONS
*(.text_entry*)
__ll_return = .;
*(.text_ll_return*)
#ifdef CONFIG_ARCH_EP93XX
/* the EP93xx expects to find the pattern 'CRUS' at 0x1000 */
. = 0x1000;
LONG(0x53555243) /* 'CRUS' */
#endif
__bare_init_start = .;
*(.text_bare_init*)
__bare_init_end = .;

View File

@ -1,3 +1,3 @@
obj-y += clocksource.o gpio.o led.o
obj-y += clocksource.o gpio.o led.o header.o
obj-$(CONFIG_MACH_DO_LOWLEVEL_INIT) += lowlevel_init.o

View File

@ -0,0 +1,8 @@
#include <common.h>
#include <linux/compiler.h>
#include <asm/barebox-arm-head.h>
void __naked __section(.flash_header_start) go(void)
{
barebox_arm_head();
}

View File

@ -0,0 +1,9 @@
/* the EP93xx expects to find the pattern 'CRUS' at 0x1000 */
#define PRE_IMAGE \
.pre_image : { \
KEEP(*(.flash_header_start*)) \
. = 0x1000; \
LONG(0x53555243) /* 'CRUS' */ \
}

View File

@ -4,7 +4,8 @@
defined CONFIG_ARCH_IMX51 || \
defined CONFIG_ARCH_IMX53 || \
defined CONFIG_ARCH_IMX6 || \
defined CONFIG_X86
defined CONFIG_X86 || \
defined CONFIG_ARCH_EP93XX
#include <mach/barebox.lds.h>
#endif