mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
35 lines
351 B
Plaintext
35 lines
351 B
Plaintext
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 = .;
|
|
}
|