2005-04-17 02:20:36 +04:00
|
|
|
#define VMLINUX_SYMBOL(_sym_) _##_sym_
|
|
|
|
#include <asm-generic/vmlinux.lds.h>
|
|
|
|
|
|
|
|
/* target memory map */
|
|
|
|
#ifdef CONFIG_H8300H_GENERIC
|
|
|
|
#define ROMTOP 0x000000
|
|
|
|
#define ROMSIZE 0x400000
|
|
|
|
#define RAMTOP 0x400000
|
|
|
|
#define RAMSIZE 0x400000
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_H8300H_AKI3068NET
|
|
|
|
#define ROMTOP 0x000000
|
|
|
|
#define ROMSIZE 0x080000
|
|
|
|
#define RAMTOP 0x400000
|
|
|
|
#define RAMSIZE 0x200000
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_H8300H_H8MAX
|
|
|
|
#define ROMTOP 0x000000
|
|
|
|
#define ROMSIZE 0x080000
|
|
|
|
#define RAMTOP 0x400000
|
|
|
|
#define RAMSIZE 0x200000
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_H8300H_SIM
|
|
|
|
#define ROMTOP 0x000000
|
|
|
|
#define ROMSIZE 0x400000
|
|
|
|
#define RAMTOP 0x400000
|
|
|
|
#define RAMSIZE 0x400000
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_H8S_SIM
|
|
|
|
#define ROMTOP 0x000000
|
|
|
|
#define ROMSIZE 0x400000
|
|
|
|
#define RAMTOP 0x400000
|
|
|
|
#define RAMSIZE 0x800000
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_H8S_EDOSK2674
|
|
|
|
#define ROMTOP 0x000000
|
|
|
|
#define ROMSIZE 0x400000
|
|
|
|
#define RAMTOP 0x400000
|
|
|
|
#define RAMSIZE 0x800000
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(CONFIG_H8300H_SIM) || defined(CONFIG_H8S_SIM)
|
|
|
|
INPUT(romfs.o)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
_jiffies = _jiffies_64 + 4;
|
|
|
|
|
|
|
|
ENTRY(__start)
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
#if defined(CONFIG_ROMKERNEL)
|
|
|
|
. = ROMTOP;
|
|
|
|
.vectors :
|
|
|
|
{
|
|
|
|
__vector = . ;
|
|
|
|
*(.vectors*)
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
. = RAMTOP;
|
|
|
|
.bootvec :
|
|
|
|
{
|
|
|
|
*(.bootvec)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
.text :
|
|
|
|
{
|
2006-12-07 04:14:04 +03:00
|
|
|
_text = .;
|
2005-04-17 02:20:36 +04:00
|
|
|
#if defined(CONFIG_ROMKERNEL)
|
|
|
|
*(.int_redirect)
|
|
|
|
#endif
|
|
|
|
__stext = . ;
|
2007-05-13 02:31:33 +04:00
|
|
|
TEXT_TEXT
|
2005-04-17 02:20:36 +04:00
|
|
|
SCHED_TEXT
|
|
|
|
LOCK_TEXT
|
|
|
|
__etext = . ;
|
|
|
|
. = ALIGN(16); /* Exception table */
|
|
|
|
___start___ex_table = .;
|
|
|
|
*(__ex_table)
|
|
|
|
___stop___ex_table = .;
|
|
|
|
}
|
|
|
|
|
|
|
|
RODATA
|
|
|
|
#if defined(CONFIG_ROMKERNEL)
|
|
|
|
SECURITY_INIT
|
|
|
|
#endif
|
|
|
|
ROEND = .;
|
|
|
|
#if defined(CONFIG_ROMKERNEL)
|
|
|
|
. = RAMTOP;
|
|
|
|
.data : AT(ROEND)
|
|
|
|
#else
|
|
|
|
.data :
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
__sdata = . ;
|
|
|
|
___data_start = . ;
|
|
|
|
|
|
|
|
. = ALIGN(0x2000) ;
|
|
|
|
*(.data.init_task)
|
|
|
|
. = ALIGN(0x4) ;
|
2007-05-17 15:38:44 +04:00
|
|
|
DATA_DATA
|
2005-04-17 02:20:36 +04:00
|
|
|
. = ALIGN(0x4) ;
|
|
|
|
*(.data.*)
|
|
|
|
|
|
|
|
. = ALIGN(0x4) ;
|
|
|
|
___init_begin = .;
|
|
|
|
__sinittext = .;
|
2008-01-20 16:15:03 +03:00
|
|
|
INIT_TEXT
|
2005-04-17 02:20:36 +04:00
|
|
|
__einittext = .;
|
2008-01-20 16:15:03 +03:00
|
|
|
INIT_DATA
|
2005-04-17 02:20:36 +04:00
|
|
|
. = ALIGN(0x4) ;
|
|
|
|
___setup_start = .;
|
|
|
|
*(.init.setup)
|
|
|
|
. = ALIGN(0x4) ;
|
|
|
|
___setup_end = .;
|
|
|
|
___initcall_start = .;
|
2006-10-27 22:41:44 +04:00
|
|
|
INITCALLS
|
2005-04-17 02:20:36 +04:00
|
|
|
___initcall_end = .;
|
|
|
|
___con_initcall_start = .;
|
|
|
|
*(.con_initcall.init)
|
|
|
|
___con_initcall_end = .;
|
2008-01-20 16:15:03 +03:00
|
|
|
EXIT_TEXT
|
|
|
|
EXIT_DATA
|
2007-02-10 12:44:44 +03:00
|
|
|
#if defined(CONFIG_BLK_DEV_INITRD)
|
2005-04-17 02:20:36 +04:00
|
|
|
. = ALIGN(4);
|
|
|
|
___initramfs_start = .;
|
|
|
|
*(.init.ramfs)
|
|
|
|
___initramfs_end = .;
|
2007-02-10 12:44:44 +03:00
|
|
|
#endif
|
2005-04-17 02:20:36 +04:00
|
|
|
. = ALIGN(0x4) ;
|
|
|
|
___init_end = .;
|
|
|
|
__edata = . ;
|
|
|
|
}
|
|
|
|
#if defined(CONFIG_RAMKERNEL)
|
|
|
|
SECURITY_INIT
|
|
|
|
#endif
|
|
|
|
__begin_data = LOADADDR(.data);
|
|
|
|
.bss :
|
|
|
|
{
|
|
|
|
. = ALIGN(0x4) ;
|
|
|
|
__sbss = . ;
|
|
|
|
*(.bss*)
|
|
|
|
. = ALIGN(0x4) ;
|
|
|
|
*(COMMON)
|
|
|
|
. = ALIGN(0x4) ;
|
|
|
|
__ebss = . ;
|
|
|
|
__end = . ;
|
|
|
|
__ramstart = .;
|
|
|
|
}
|
|
|
|
/DISCARD/ : {
|
|
|
|
*(.exitcall.exit)
|
|
|
|
}
|
|
|
|
.romfs :
|
|
|
|
{
|
|
|
|
*(.romfs*)
|
|
|
|
}
|
|
|
|
. = RAMTOP+RAMSIZE;
|
|
|
|
.dummy :
|
|
|
|
{
|
|
|
|
COMMAND_START = . - 0x200 ;
|
|
|
|
__ramend = . ;
|
|
|
|
}
|
|
|
|
}
|