summaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/image/lzma-loader/src/loader.lds
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-04-25 19:03:13 +0000
committerJohn Crispin <john@openwrt.org>2013-04-25 19:03:13 +0000
commit46306c2e470063be7497c701511626791eccd6c0 (patch)
tree3b960af63722f03d519d042758fb1f2672cf5a0e /target/linux/lantiq/image/lzma-loader/src/loader.lds
parentfd79eb4e7c04b03d0301120c04311e54995e8d24 (diff)
downloadmaster-31e0f0ae-46306c2e470063be7497c701511626791eccd6c0.tar.gz
master-31e0f0ae-46306c2e470063be7497c701511626791eccd6c0.tar.bz2
master-31e0f0ae-46306c2e470063be7497c701511626791eccd6c0.zip
lantiq: add lzma-loader source
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36438
Diffstat (limited to 'target/linux/lantiq/image/lzma-loader/src/loader.lds')
-rw-r--r--target/linux/lantiq/image/lzma-loader/src/loader.lds35
1 files changed, 35 insertions, 0 deletions
diff --git a/target/linux/lantiq/image/lzma-loader/src/loader.lds b/target/linux/lantiq/image/lzma-loader/src/loader.lds
new file mode 100644
index 0000000000..80cc7ca3ec
--- /dev/null
+++ b/target/linux/lantiq/image/lzma-loader/src/loader.lds
@@ -0,0 +1,35 @@
+OUTPUT_ARCH(mips)
+SECTIONS {
+ .text : {
+ _code_start = .;
+ *(.text)
+ *(.text.*)
+ *(.rodata)
+ *(.rodata.*)
+ *(.data.lzma)
+ }
+
+ . = ALIGN(32);
+ .data : {
+ *(.data)
+ *(.data.*)
+ . = . + 524288; /* workaround for buggy bootloaders */
+ }
+
+ . = ALIGN(32);
+ _code_end = .;
+
+ _bss_start = .;
+ .bss : {
+ *(.bss)
+ *(.bss.*)
+ }
+
+ . = ALIGN(32);
+ _bss_end = .;
+
+ . = . + 8192;
+ _stack = .;
+
+ workspace = .;
+}