diff options
author | Jonas Gorski <jogo@openwrt.org> | 2014-08-01 21:56:31 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2014-08-01 21:56:31 +0000 |
commit | 9762c605fe5fe106010f441c9daf42b08c1fcad8 (patch) | |
tree | 0a6166911934c4b2de5baa7f8ef5185da00ca06f /target/linux/brcm63xx/image/lzma-loader/src/loader.lds | |
parent | a3ea08a8254c2d653bd9440441e59a9bfdc1394b (diff) | |
download | master-187ad058-9762c605fe5fe106010f441c9daf42b08c1fcad8.tar.gz master-187ad058-9762c605fe5fe106010f441c9daf42b08c1fcad8.tar.bz2 master-187ad058-9762c605fe5fe106010f441c9daf42b08c1fcad8.zip |
brcm63xx: add working lzma-loader and use it for initramfs
Add a working lzma loader and use it for generating initramfs kernels
to allow easily netbooting elf kernels on devices with a 4 MiB CFE
size limit.
Based on ar71xx's lzma-loader.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41940 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/image/lzma-loader/src/loader.lds')
-rw-r--r-- | target/linux/brcm63xx/image/lzma-loader/src/loader.lds | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/image/lzma-loader/src/loader.lds b/target/linux/brcm63xx/image/lzma-loader/src/loader.lds new file mode 100644 index 0000000000..01ff852361 --- /dev/null +++ b/target/linux/brcm63xx/image/lzma-loader/src/loader.lds @@ -0,0 +1,34 @@ +OUTPUT_ARCH(mips) +SECTIONS { + .text : { + _code_start = .; + *(.text) + *(.text.*) + *(.rodata) + *(.rodata.*) + *(.data.lzma) + } + + . = ALIGN(32); + .data : { + *(.data) + *(.data.*) + } + + . = ALIGN(32); + _code_end = .; + + _bss_start = .; + .bss : { + *(.bss) + *(.bss.*) + } + + . = ALIGN(32); + _bss_end = .; + + . = . + 8192; + _stack = .; + + workspace = .; +} |