summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/image/lzma-loader/src/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* ar71xx: lzma-loader: set page size to 4KBMatthias Schiffer2018-06-061-1/+1
| | | | | | | | 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>
* ar71xx: fix lzma-loader build with glibcJonas Gorski2017-12-131-1/+1
| | | | | | | | | | | | | | | | For an unknown reason gcc tries to link in crti.o when building with a glibc toolchain (this does not happen with other targets). Prevent this by telling gcc explicitly to not do that. Fixes the following build error: /home/jonas/git/lede/staging_dir/toolchain-mips_24kc_gcc-5.5.0_glibc/lib/gcc/mips-openwrt-linux-gnu/5.5.0/../../../../mips-openwrt-linux-gnu/lib/crti.o: In function `_init': (.init+0x18): relocation truncated to fit: R_MIPS_GOT16 against `__gmon_start__' /home/jonas/git/lede/staging_dir/toolchain-mips_24kc_gcc-5.5.0_glibc/lib/gcc/mips-openwrt-linux-gnu/5.5.0/../../../../mips-openwrt-linux-gnu/lib/crti.o: In function `_init': (.init+0x28): relocation truncated to fit: R_MIPS_CALL16 against `__gmon_start__' collect2: error: ld returned 1 exit status Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* ar71xx: lzma loader use LTOJulien Dusser2017-10-241-3/+5
| | | | | | | Change the Makefile to use LTO for better code optimisations. Gains are very low, only 270 bytes saved, but it's only Makefile changes. Signed-off-by: Julien Dusser <julien.dusser@free.fr>
* ar71xx: fix build of lzma-loader with binutils 2.25.1Hauke Mehrtens2015-09-121-1/+2
| | | | | | | | | | | | | | | | To make the lzma-loader build with binutils 2.25.1 it is needed to remove the .MIPS.abiflags section otherwise I get the following compile error: mips-openwrt-linux-musl-objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S loader loader.bin mips-openwrt-linux-musl-objcopy: Warning: Writing section `.text' to huge (ie negative) file offset 0xffffffff80a00000. mips-openwrt-linux-musl-objcopy:loader.bin[.text]: File truncated This should close #20487. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 46893
* ar71xx/image: relink loader.elf image to LOADADDRGabor Juhos2012-11-201-5/+11
| | | | | | | | | This allows to load the resulting image directly from RouterBOOT. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34271
* ar71xx: image: allow to use board specific code in the lzma-loaderGabor Juhos2012-08-021-1/+6
| | | | SVN-Revision: 32945
* ar71xx: add lzma loaderGabor Juhos2011-12-051-0/+94
SVN-Revision: 29443