Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: b6dd2082cf
Fetching contributors…

Cannot retrieve contributors at this time

62 lines (47 sloc) 1.096 kB
/*
* model.lds.S - simple linker script for stand-alone Linux booting
*
* Copyright (C) 2011 ARM Limited. All rights reserved.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE.txt file.
*/
OUTPUT_FORMAT("elf32-littlearm")
OUTPUT_ARCH(arm)
TARGET(binary)
#ifndef SEMIHOSTING
INPUT(./uImage)
#ifdef USE_INITRD
INPUT(./filesystem.cpio.gz)
#endif
#endif
PHYS_OFFSET = 0x80000000;
MON_OFFSET = 0xf0000000;
STACKTOP = 0xff000000;
SECTIONS
{
. = PHYS_OFFSET;
. = PHYS_OFFSET + 0x8000 - 0x40;
kernel_start = .;
kernel_entry = . + 0x40;
#ifndef SEMIHOSTING
.kernel : { ./uImage }
#endif
kernel_end = .;
. = PHYS_OFFSET + 0x00d00000;
fs_start = .;
#if defined(USE_INITRD) && !defined(SEMIHOSTING)
.filesystem : { ./filesystem.cpio.gz }
#endif
fs_end = .;
. = MON_OFFSET;
.monitor : { monitor.o }
/* Put most of the actual boot loader code up in high memory
* where it won't get overwritten by kernel, initrd or atags.
*/
.text : { *(.text) }
.data : { *(.data) }
.bss : { *(.bss) }
. = STACKTOP;
stacktop = .;
}
Jump to Line
Something went wrong with that request. Please try again.