mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-01 19:46:51 +00:00
ar71xx: lzma-loader: set page size to 4KB
The text section in the ELF loader is aligned to the maximum page size, which defaults to 64KB. Reduce it to the actual page size to avoid wasting flash space for this alignment. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
This commit is contained in:
parent
e5301885bc
commit
7128fe094f
@ -97,7 +97,7 @@ loader2.o: loader.bin
|
|||||||
$(LD) -r -b binary --oformat $(O_FORMAT) -o $@ $<
|
$(LD) -r -b binary --oformat $(O_FORMAT) -o $@ $<
|
||||||
|
|
||||||
loader.elf: loader2.o
|
loader.elf: loader2.o
|
||||||
$(LD) -e startup -T loader2.lds -Ttext $(LOADADDR) -o $@ $<
|
$(LD) -z max-page-size=0x1000 -e startup -T loader2.lds -Ttext $(LOADADDR) -o $@ $<
|
||||||
|
|
||||||
mrproper: clean
|
mrproper: clean
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user