mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Import 1-upx-hg_mips-stub_clean-up.patch.
This commit is contained in:
parent
af0c9ef092
commit
32998e5377
|
@ -1,5 +1,3 @@
|
||||||
#define BIG_ENDIAN 1
|
#define BIG_ENDIAN 1
|
||||||
WITHOUT_SUB = 1
|
|
||||||
UCL_SMALL = 1
|
|
||||||
|
|
||||||
#include "mipsel.r3000-linux.elf-entry.S"
|
#include "mipsel.r3000-linux.elf-entry.S"
|
||||||
|
|
|
@ -32,6 +32,10 @@
|
||||||
#include "arch/mips/mipsel.r3000/macros.ash"
|
#include "arch/mips/mipsel.r3000/macros.ash"
|
||||||
#include "arch/mips/mipsel.r3000/bits.ash"
|
#include "arch/mips/mipsel.r3000/bits.ash"
|
||||||
|
|
||||||
|
#ifndef BIG_ENDIAN
|
||||||
|
# define BIG_ENDIAN 0
|
||||||
|
#endif
|
||||||
|
|
||||||
.set mips1
|
.set mips1
|
||||||
.set noreorder
|
.set noreorder
|
||||||
.set noat
|
.set noat
|
||||||
|
@ -104,17 +108,19 @@ decompressor: // (uchar const *lxsrc, size_t lxsrclen, uchar *lxdst, u32 &lxdst
|
||||||
#undef dst /* bits.ash */
|
#undef dst /* bits.ash */
|
||||||
#define dst lxdst
|
#define dst lxdst
|
||||||
|
|
||||||
|
UCL_init 32,1,0
|
||||||
|
decomp_done = eof
|
||||||
#include "arch/mips/mipsel.r3000/nrv2e_d.ash"
|
#include "arch/mips/mipsel.r3000/nrv2e_d.ash"
|
||||||
section NRV2E
|
section NRV2E
|
||||||
nrv2e eof
|
build nrv2e, full
|
||||||
|
|
||||||
#include "arch/mips/mipsel.r3000/nrv2d_d.ash"
|
#include "arch/mips/mipsel.r3000/nrv2d_d.ash"
|
||||||
section NRV2D
|
section NRV2D
|
||||||
nrv2d eof
|
build nrv2d, full
|
||||||
|
|
||||||
#include "arch/mips/mipsel.r3000/nrv2b_d.ash"
|
#include "arch/mips/mipsel.r3000/nrv2b_d.ash"
|
||||||
section NRV2B
|
section NRV2B
|
||||||
nrv2b eof
|
build nrv2b, full
|
||||||
|
|
||||||
section LZMA_ELF00 # (a0=lxsrc, a1=lxsrclen, a2=lxdst, a3= &lxdstlen)
|
section LZMA_ELF00 # (a0=lxsrc, a1=lxsrclen, a2=lxdst, a3= &lxdstlen)
|
||||||
|
|
||||||
|
|
|
@ -296,36 +296,36 @@ section memset.long
|
||||||
|
|
||||||
UCL_init 8,0,1
|
UCL_init 8,0,1
|
||||||
section nrv2b.8bit
|
section nrv2b.8bit
|
||||||
build full, nrv2b
|
build nrv2b, full
|
||||||
section nrv2d.8bit
|
section nrv2d.8bit
|
||||||
build full, nrv2d
|
build nrv2d, full
|
||||||
section nrv2e.8bit
|
section nrv2e.8bit
|
||||||
build full, nrv2e
|
build nrv2e, full
|
||||||
|
|
||||||
UCL_init 32,0,1
|
UCL_init 32,0,1
|
||||||
section nrv2b.32bit
|
section nrv2b.32bit
|
||||||
build full, nrv2b
|
build nrv2b, full
|
||||||
section nrv2d.32bit
|
section nrv2d.32bit
|
||||||
build full, nrv2d
|
build nrv2d, full
|
||||||
section nrv2e.32bit
|
section nrv2e.32bit
|
||||||
build full, nrv2e
|
build nrv2e, full
|
||||||
|
|
||||||
// ========== console-run
|
// ========== console-run
|
||||||
|
|
||||||
UCL_init 8,1,0
|
UCL_init 8,1,0
|
||||||
section 8bit.sub
|
section 8bit.sub
|
||||||
build sub_only, 0, gb8_e
|
build 0, sub_only, gb8_e
|
||||||
|
|
||||||
UCL_init 32,1,0
|
UCL_init 32,1,0
|
||||||
section 32bit.sub
|
section 32bit.sub
|
||||||
build sub_only, 0, gb32_e
|
build 0, sub_only, gb32_e
|
||||||
|
|
||||||
section nrv2b.small
|
section nrv2b.small
|
||||||
build without_sub, nrv2b
|
build nrv2b, without_sub
|
||||||
section nrv2d.small
|
section nrv2d.small
|
||||||
build without_sub, nrv2d
|
build nrv2d, without_sub
|
||||||
section nrv2e.small
|
section nrv2e.small
|
||||||
build without_sub, nrv2e
|
build nrv2e, without_sub
|
||||||
|
|
||||||
section nrv.done
|
section nrv.done
|
||||||
decomp_done:
|
decomp_done:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user