701e2a38fe
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> SVN-Revision: 41940
34 lines
351 B
Text
34 lines
351 B
Text
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 = .;
|
|
}
|