Files
linux-apfs/arch/um/kernel/uml.lds.S
T

104 lines
2.1 KiB
ArmAsm
Raw Normal View History

2005-04-16 15:20:36 -07:00
#include <asm-generic/vmlinux.lds.h>
2008-05-12 14:01:56 -07:00
#include <asm/page.h>
2005-04-16 15:20:36 -07:00
OUTPUT_FORMAT(ELF_FORMAT)
OUTPUT_ARCH(ELF_ARCH)
ENTRY(_start)
jiffies = jiffies_64;
SECTIONS
{
2006-07-10 04:45:06 -07:00
/* This must contain the right address - not quite the default ELF one.*/
2005-04-16 15:20:36 -07:00
PROVIDE (__executable_start = START);
2006-07-10 04:45:06 -07:00
/* Static binaries stick stuff here, like the sigreturn trampoline,
* invisibly to objdump. So, just make __binary_start equal to the very
* beginning of the executable, and if there are unmapped pages after this,
* they are forever unusable.
*/
__binary_start = START;
2005-04-16 15:20:36 -07:00
2006-07-10 04:45:06 -07:00
. = START + SIZEOF_HEADERS;
2005-04-16 15:20:36 -07:00
_text = .;
2005-04-16 15:20:36 -07:00
_stext = .;
__init_begin = .;
.init.text : {
_sinittext = .;
INIT_TEXT
2005-04-16 15:20:36 -07:00
_einittext = .;
}
2008-05-12 14:01:56 -07:00
. = ALIGN(PAGE_SIZE);
2005-04-16 15:20:36 -07:00
.text :
{
TEXT_TEXT
2005-04-16 15:20:36 -07:00
SCHED_TEXT
LOCK_TEXT
*(.fixup)
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
*(.gnu.linkonce.t*)
2007-08-30 23:56:17 -07:00
}
2008-05-12 14:01:56 -07:00
. = ALIGN(PAGE_SIZE);
2007-08-30 23:56:17 -07:00
.syscall_stub : {
__syscall_stub_start = .;
*(.__syscall_stub*)
__syscall_stub_end = .;
2005-04-16 15:20:36 -07:00
}
#include "asm/common.lds.S"
init.data : { INIT_DATA }
2005-04-16 15:20:36 -07:00
.data :
{
. = ALIGN(KERNEL_STACK_SIZE); /* init_task */
*(.data.init_task)
2007-05-10 22:22:34 -07:00
. = ALIGN(KERNEL_STACK_SIZE);
*(.data.init_irqstack)
DATA_DATA
2005-04-16 15:20:36 -07:00
*(.gnu.linkonce.d*)
CONSTRUCTORS
}
.data1 : { *(.data1) }
.ctors :
{
*(.ctors)
}
.dtors :
{
*(.dtors)
}
.got : { *(.got.plt) *(.got) }
.dynamic : { *(.dynamic) }
2005-05-20 13:59:07 -07:00
.tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
.tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
2005-04-16 15:20:36 -07:00
/* We want the small data sections together, so single-instruction offsets
can access them all, and initialized data all before uninitialized, so
we can shorten the on-disk segment size. */
.sdata : { *(.sdata) }
_edata = .;
PROVIDE (edata = .);
2008-05-12 14:01:56 -07:00
. = ALIGN(PAGE_SIZE);
2005-04-16 15:20:36 -07:00
.sbss :
{
__bss_start = .;
PROVIDE(_bss_start = .);
*(.sbss)
*(.scommon)
}
.bss :
{
*(.dynbss)
*(.bss)
*(COMMON)
}
_end = .;
2005-04-16 15:20:36 -07:00
PROVIDE (end = .);
STABS_DEBUG
DWARF_DEBUG
2005-04-16 15:20:36 -07:00
}