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 | 33848f14d30d51e15ce99765a7063abe38bc6e92 (patch) | |
tree | 2afd99d106ac76b1240733500560608584a8c697 /target/linux/ramips/image/relocate/loader.lds | |
parent | 82f21058a180b0b30007fe7c9ce2cde9f970301b (diff) | |
download | upstream-33848f14d30d51e15ce99765a7063abe38bc6e92.tar.gz upstream-33848f14d30d51e15ce99765a7063abe38bc6e92.tar.bz2 upstream-33848f14d30d51e15ce99765a7063abe38bc6e92.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>
SVN-Revision: 44014
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 = .; +} |