Merge branch 'adm8668'
[openwrt.git] / target / linux / adm8668 / image / lzma-loader / src / lzma.lds.in
diff --git a/target/linux/adm8668/image/lzma-loader/src/lzma.lds.in b/target/linux/adm8668/image/lzma-loader/src/lzma.lds.in
new file mode 100644 (file)
index 0000000..d6c60ca
--- /dev/null
@@ -0,0 +1,24 @@
+OUTPUT_ARCH(mips)
+ENTRY(entry)
+SECTIONS
+{
+  /* Read-only sections, merged into text segment: */
+  . = @LOADADDR@;
+  .text      :
+  {
+    _ftext = . ;
+    *(.text.entry)
+    *(.text)
+    lzma_start = .;
+    kernel.o
+    lzma_end = .;
+    *(.rodata)
+  } =0
+
+  .reginfo : { *(.reginfo) }
+
+  .bss       :
+  {
+   *(.bss)
+  }
+}