2005-04-16 18:20:36 -04:00
|
|
|
/*
|
|
|
|
* vmlinux.lds.S -- master linker script for m68knommu arch
|
|
|
|
*
|
2006-06-26 02:33:05 -04:00
|
|
|
* (C) Copyright 2002-2006, Greg Ungerer <gerg@snapgear.com>
|
2005-04-16 18:20:36 -04:00
|
|
|
*
|
2006-06-28 02:44:14 -04:00
|
|
|
* This linker script is equiped to build either ROM loaded or RAM
|
|
|
|
* run kernels.
|
2005-04-16 18:20:36 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <asm-generic/vmlinux.lds.h>
|
|
|
|
|
|
|
|
#if defined(CONFIG_RAMKERNEL)
|
2006-06-26 02:33:05 -04:00
|
|
|
#define RAM_START CONFIG_KERNELBASE
|
|
|
|
#define RAM_LENGTH (CONFIG_RAMBASE + CONFIG_RAMSIZE - CONFIG_KERNELBASE)
|
2005-04-16 18:20:36 -04:00
|
|
|
#define TEXT ram
|
|
|
|
#define DATA ram
|
|
|
|
#define INIT ram
|
|
|
|
#define BSS ram
|
|
|
|
#endif
|
|
|
|
#if defined(CONFIG_ROMKERNEL) || defined(CONFIG_HIMEMKERNEL)
|
2006-06-26 02:33:05 -04:00
|
|
|
#define RAM_START CONFIG_RAMBASE
|
|
|
|
#define RAM_LENGTH CONFIG_RAMSIZE
|
2006-06-28 02:44:14 -04:00
|
|
|
#define ROMVEC_START CONFIG_ROMVEC
|
|
|
|
#define ROMVEC_LENGTH CONFIG_ROMVECSIZE
|
|
|
|
#define ROM_START CONFIG_ROMSTART
|
|
|
|
#define ROM_LENGTH CONFIG_ROMSIZE
|
2005-04-16 18:20:36 -04:00
|
|
|
#define TEXT rom
|
|
|
|
#define DATA ram
|
|
|
|
#define INIT ram
|
|
|
|
#define BSS ram
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef DATA_ADDR
|
|
|
|
#define DATA_ADDR
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
OUTPUT_ARCH(m68k)
|
|
|
|
ENTRY(_start)
|
|
|
|
|
|
|
|
MEMORY {
|
|
|
|
ram : ORIGIN = RAM_START, LENGTH = RAM_LENGTH
|
|
|
|
#ifdef ROM_START
|
|
|
|
romvec : ORIGIN = ROMVEC_START, LENGTH = ROMVEC_LENGTH
|
|
|
|
rom : ORIGIN = ROM_START, LENGTH = ROM_LENGTH
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
jiffies = jiffies_64 + 4;
|
|
|
|
|
|
|
|
SECTIONS {
|
|
|
|
|
|
|
|
#ifdef ROMVEC_START
|
|
|
|
. = ROMVEC_START ;
|
|
|
|
.romvec : {
|
|
|
|
__rom_start = . ;
|
|
|
|
_romvec = .;
|
|
|
|
*(.data.initvect)
|
|
|
|
} > romvec
|
|
|
|
#endif
|
|
|
|
|
|
|
|
.text : {
|
2006-12-06 20:14:04 -05:00
|
|
|
_text = .;
|
2005-04-16 18:20:36 -04:00
|
|
|
_stext = . ;
|
2007-05-12 18:31:33 -04:00
|
|
|
TEXT_TEXT
|
2005-04-16 18:20:36 -04:00
|
|
|
SCHED_TEXT
|
2008-04-30 22:16:46 -04:00
|
|
|
LOCK_TEXT
|
2005-04-16 18:20:36 -04:00
|
|
|
*(.text.lock)
|
|
|
|
|
|
|
|
. = ALIGN(16); /* Exception table */
|
|
|
|
__start___ex_table = .;
|
|
|
|
*(__ex_table)
|
|
|
|
__stop___ex_table = .;
|
|
|
|
|
|
|
|
*(.rodata) *(.rodata.*)
|
|
|
|
*(__vermagic) /* Kernel version magic */
|
2008-04-30 22:16:46 -04:00
|
|
|
*(__markers_strings)
|
2005-04-16 18:20:36 -04:00
|
|
|
*(.rodata1)
|
|
|
|
*(.rodata.str1.1)
|
|
|
|
|
|
|
|
/* Kernel symbol table: Normal symbols */
|
|
|
|
. = ALIGN(4);
|
|
|
|
__start___ksymtab = .;
|
|
|
|
*(__ksymtab)
|
|
|
|
__stop___ksymtab = .;
|
|
|
|
|
|
|
|
/* Kernel symbol table: GPL-only symbols */
|
|
|
|
__start___ksymtab_gpl = .;
|
|
|
|
*(__ksymtab_gpl)
|
|
|
|
__stop___ksymtab_gpl = .;
|
|
|
|
|
2007-02-06 20:45:43 -05:00
|
|
|
/* Kernel symbol table: Normal unused symbols */
|
|
|
|
__start___ksymtab_unused = .;
|
|
|
|
*(__ksymtab_unused)
|
|
|
|
__stop___ksymtab_unused = .;
|
|
|
|
|
|
|
|
/* Kernel symbol table: GPL-only unused symbols */
|
|
|
|
__start___ksymtab_unused_gpl = .;
|
|
|
|
*(__ksymtab_unused_gpl)
|
|
|
|
__stop___ksymtab_unused_gpl = .;
|
|
|
|
|
2006-03-20 16:17:13 -05:00
|
|
|
/* Kernel symbol table: GPL-future symbols */
|
|
|
|
__start___ksymtab_gpl_future = .;
|
|
|
|
*(__ksymtab_gpl_future)
|
|
|
|
__stop___ksymtab_gpl_future = .;
|
|
|
|
|
2005-04-16 18:20:36 -04:00
|
|
|
/* Kernel symbol table: Normal symbols */
|
|
|
|
__start___kcrctab = .;
|
|
|
|
*(__kcrctab)
|
|
|
|
__stop___kcrctab = .;
|
|
|
|
|
|
|
|
/* Kernel symbol table: GPL-only symbols */
|
|
|
|
__start___kcrctab_gpl = .;
|
|
|
|
*(__kcrctab_gpl)
|
|
|
|
__stop___kcrctab_gpl = .;
|
|
|
|
|
2008-05-12 17:02:23 -04:00
|
|
|
/* Kernel symbol table: Normal unused symbols */
|
|
|
|
__start___kcrctab_unused = .;
|
|
|
|
*(__kcrctab_unused)
|
|
|
|
__stop___kcrctab_unused = .;
|
|
|
|
|
|
|
|
/* Kernel symbol table: GPL-only unused symbols */
|
|
|
|
__start___kcrctab_unused_gpl = .;
|
|
|
|
*(__kcrctab_unused_gpl)
|
|
|
|
__stop___kcrctab_unused_gpl = .;
|
|
|
|
|
2006-03-20 16:17:13 -05:00
|
|
|
/* Kernel symbol table: GPL-future symbols */
|
|
|
|
__start___kcrctab_gpl_future = .;
|
|
|
|
*(__kcrctab_gpl_future)
|
|
|
|
__stop___kcrctab_gpl_future = .;
|
|
|
|
|
2005-04-16 18:20:36 -04:00
|
|
|
/* Kernel symbol table: strings */
|
|
|
|
*(__ksymtab_strings)
|
|
|
|
|
|
|
|
/* Built-in module parameters */
|
2005-11-06 23:09:50 -05:00
|
|
|
. = ALIGN(4) ;
|
2005-04-16 18:20:36 -04:00
|
|
|
__start___param = .;
|
|
|
|
*(__param)
|
|
|
|
__stop___param = .;
|
|
|
|
|
|
|
|
. = ALIGN(4) ;
|
|
|
|
_etext = . ;
|
|
|
|
} > TEXT
|
|
|
|
|
|
|
|
.data DATA_ADDR : {
|
|
|
|
. = ALIGN(4);
|
|
|
|
_sdata = . ;
|
2007-05-17 07:38:44 -04:00
|
|
|
DATA_DATA
|
2005-04-16 18:20:36 -04:00
|
|
|
. = ALIGN(8192) ;
|
|
|
|
*(.data.init_task)
|
|
|
|
_edata = . ;
|
|
|
|
} > DATA
|
|
|
|
|
|
|
|
.init : {
|
|
|
|
. = ALIGN(4096);
|
|
|
|
__init_begin = .;
|
|
|
|
_sinittext = .;
|
2008-01-20 08:15:03 -05:00
|
|
|
INIT_TEXT
|
2005-04-16 18:20:36 -04:00
|
|
|
_einittext = .;
|
2008-01-20 08:15:03 -05:00
|
|
|
INIT_DATA
|
2005-04-16 18:20:36 -04:00
|
|
|
. = ALIGN(16);
|
|
|
|
__setup_start = .;
|
|
|
|
*(.init.setup)
|
|
|
|
__setup_end = .;
|
|
|
|
__initcall_start = .;
|
2006-10-27 14:41:44 -04:00
|
|
|
INITCALLS
|
2005-04-16 18:20:36 -04:00
|
|
|
__initcall_end = .;
|
|
|
|
__con_initcall_start = .;
|
|
|
|
*(.con_initcall.init)
|
|
|
|
__con_initcall_end = .;
|
|
|
|
__security_initcall_start = .;
|
|
|
|
*(.security_initcall.init)
|
|
|
|
__security_initcall_end = .;
|
2007-02-10 04:44:44 -05:00
|
|
|
#ifdef CONFIG_BLK_DEV_INITRD
|
2005-04-16 18:20:36 -04:00
|
|
|
. = ALIGN(4);
|
|
|
|
__initramfs_start = .;
|
|
|
|
*(.init.ramfs)
|
|
|
|
__initramfs_end = .;
|
2007-02-10 04:44:44 -05:00
|
|
|
#endif
|
2005-04-16 18:20:36 -04:00
|
|
|
. = ALIGN(4096);
|
|
|
|
__init_end = .;
|
|
|
|
} > INIT
|
|
|
|
|
|
|
|
/DISCARD/ : {
|
2008-01-20 08:15:03 -05:00
|
|
|
EXIT_TEXT
|
|
|
|
EXIT_DATA
|
2005-04-16 18:20:36 -04:00
|
|
|
*(.exitcall.exit)
|
|
|
|
}
|
|
|
|
|
|
|
|
.bss : {
|
|
|
|
. = ALIGN(4);
|
|
|
|
_sbss = . ;
|
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
|
|
|
. = ALIGN(4) ;
|
|
|
|
_ebss = . ;
|
2008-04-30 22:16:46 -04:00
|
|
|
_end = . ;
|
2005-04-16 18:20:36 -04:00
|
|
|
} > BSS
|
|
|
|
|
|
|
|
}
|
|
|
|
|