1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Removed trailing whitespace.

committer: mfx <mfx> 1109669261 +0000
This commit is contained in:
Markus F.X.J. Oberhumer 2005-03-01 09:27:41 +00:00
parent 75ef603308
commit 232754b978
4 changed files with 8 additions and 8 deletions

View File

@ -345,7 +345,7 @@ PackMachPPC32::canPack()
ptr += ((Mach_segment_command *)ptr)->cmdsize; ptr += ((Mach_segment_command *)ptr)->cmdsize;
} }
// Put LC_SEGMENT together at the beginning, ascending by .vmaddr. // Put LC_SEGMENT together at the beginning, ascending by .vmaddr.
qsort(msegcmd, mhdri.ncmds, sizeof(*msegcmd), compare_segment_command); qsort(msegcmd, mhdri.ncmds, sizeof(*msegcmd), compare_segment_command);

View File

@ -579,7 +579,7 @@ void PackVmlinuxI386::unpack(OutputFile *fo)
// $ # Compare file 'dumped' with the portion of vmlinux that made piggy.o. // $ # Compare file 'dumped' with the portion of vmlinux that made piggy.o.
// $ dd if=vmlinux bs=<leader_size> skip=1 | cmp - dumped // $ dd if=vmlinux bs=<leader_size> skip=1 | cmp - dumped
// cmp: EOF on dumped // cmp: EOF on dumped
// $ // $
//----- test-piggy.S //----- test-piggy.S
//#include <asm/mman.h> //#include <asm/mman.h>
//#include <asm/unistd.h> //#include <asm/unistd.h>

View File

@ -60,7 +60,7 @@ decompress: # (uchar const *src, size_t lsrc, uchar *dst, size_t &ldst, uint me
addi src,src,-1 # prepare for 'lbzu' addi src,src,-1 # prepare for 'lbzu'
addi dst,dst,-1 # prepare for 'stbu' addi dst,dst,-1 # prepare for 'stbu'
li disp,-1 # initial displacement li disp,-1 # initial displacement
mflr t3 # return address mflr t3 # return address
b bot_n2b b bot_n2b

View File

@ -60,7 +60,7 @@ decompress: # (uchar const *src, size_t lsrc, uchar *dst, size_t &ldst, uint me
addi src,src,-1 # prepare for 'lbzu' addi src,src,-1 # prepare for 'lbzu'
addi dst,dst,-1 # prepare for 'stbu' addi dst,dst,-1 # prepare for 'stbu'
li disp,-1 # initial displacement li disp,-1 # initial displacement
mflr t3 # return address mflr t3 # return address
b bot_n2e b bot_n2e
@ -72,10 +72,10 @@ decompress: # (uchar const *src, size_t lsrc, uchar *dst, size_t &ldst, uint me
beql-: branch and link [call subroutine] if cr0 is eq, unlikely beql-: branch and link [call subroutine] if cr0 is eq, unlikely
*/ */
#define jnextb0y cmpl 0,bits,hibit; add bits,bits,bits; beql- get32; blt+ #define jnextb0y cmpl 0,bits,hibit; add bits,bits,bits; beql- get32; blt+
#define jnextb0n cmpl 0,bits,hibit; add bits,bits,bits; beql- get32; blt- #define jnextb0n cmpl 0,bits,hibit; add bits,bits,bits; beql- get32; blt-
#define jnextb1y cmpl 0,bits,hibit; add bits,bits,bits; beql- get32; bgt+ #define jnextb1y cmpl 0,bits,hibit; add bits,bits,bits; beql- get32; bgt+
#define jnextb1n cmpl 0,bits,hibit; add bits,bits,bits; beql- get32; bgt- #define jnextb1n cmpl 0,bits,hibit; add bits,bits,bits; beql- get32; bgt-
/* rotate next bit into bottom bit of reg */ /* rotate next bit into bottom bit of reg */
#define getnextb(reg) addc. bits,bits,bits; beql- get32; adde reg,reg,reg #define getnextb(reg) addc. bits,bits,bits; beql- get32; adde reg,reg,reg