diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-01-17 21:19:38 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-01-17 21:19:38 +0000 |
commit | 506958b6f34cefa863ee3cee3656ef6cadbd6eb8 (patch) | |
tree | 9d0ed8708e6a7f2c388d06b4825bd05e1896558f /target/linux/ramips/image/relocate/loader.lds | |
parent | 3ef1fdbe0562d78a30ad27c33190fb4766d52b41 (diff) | |
download | master-187ad058-506958b6f34cefa863ee3cee3656ef6cadbd6eb8.tar.gz master-187ad058-506958b6f34cefa863ee3cee3656ef6cadbd6eb8.tar.bz2 master-187ad058-506958b6f34cefa863ee3cee3656ef6cadbd6eb8.zip |
ramips: add code for relocating a kernel to the right place
(used if the boot loader wants a different loadaddr/entry)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44014 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/image/relocate/loader.lds')
-rw-r--r-- | target/linux/ramips/image/relocate/loader.lds | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/ramips/image/relocate/loader.lds b/target/linux/ramips/image/relocate/loader.lds new file mode 100644 index 0000000000..98ca209303 --- /dev/null +++ b/target/linux/ramips/image/relocate/loader.lds @@ -0,0 +1,16 @@ +OUTPUT_ARCH(mips) +SECTIONS { + .text : { + _code_start = .; + *(.text) + *(.text.*) + *(.rodata) + *(.rodata.*) + *(.data) + *(.data.*) + } + + . = ALIGN(32); + + _code_end = .; +} |