Entry point is now configurable via a Makefile variable. Entry point is detected...
[openwrt-10.03/.git] / target / linux / adm5120-2.6 / image / lzma-loader / src / loader.lds.in
index 20f2ea98ec9ad3cef94089dac9ffb4d788489009..8c1bb9bd6a2af1a833e12e79112d3b1020b0cfaf 100644 (file)
@@ -1,17 +1,27 @@
 OUTPUT_ARCH(mips)
-ENTRY(startup)
 SECTIONS {
-       . = TEXT_START;
        .text : {
+               _code_start = .;
                *(.text)
+               *(.text.*)
                *(.rodata)
+               *(.rodata.*)
+               _code_end = .;
        }
 
        .data : {
                *(.data)
+               *(.data.*)
        }
 
        .bss : {
                *(.bss)
+               *(.bss.*)
        }
+
+       . = ALIGN(16);
+       . = . + 8192;
+       _stack = .;
+
+       workspace = .;
 }