mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Remove trailing whitespace.
This commit is contained in:
parent
5e5954a808
commit
fd3ae51f83
|
@ -425,15 +425,15 @@ int PackPs1::buildLoader(const Filter *)
|
|||
#define IS_ADDIU(a) ((OPTYPE(a) == REGIMM && OPCODE(a) == ADDIU))
|
||||
#define IS_SW_ZERO(a) ((OPTYPE(a) == STORE && OPCODE(a) == SW) && REG2(a) == 0)
|
||||
|
||||
#define BSS_CHK_LIMIT (18)
|
||||
#define BSS_CHK_LIMIT (18)
|
||||
|
||||
bool PackPs1::findBssSection()
|
||||
{
|
||||
unsigned char reg;
|
||||
LE32 *p1 = (LE32 *)(ibuf + (ih.epc - ih.tx_ptr));
|
||||
|
||||
if ((ih.epc - ih.tx_ptr + (BSS_CHK_LIMIT * 4)) > fdata_size)
|
||||
return false;
|
||||
if ((ih.epc - ih.tx_ptr + (BSS_CHK_LIMIT * 4)) > fdata_size)
|
||||
return false;
|
||||
|
||||
// check 18 opcodes for sw zero,0(x)
|
||||
for (signed i = BSS_CHK_LIMIT; i >= 0; i--)
|
||||
|
@ -620,7 +620,7 @@ void PackPs1::pack(OutputFile *fo)
|
|||
else
|
||||
if (isCon)
|
||||
linker->defineSymbol("gb_e", linker->getSymbolOffset(is32Bit ? "gb32_e" : "gb8_e"));
|
||||
|
||||
|
||||
if (isCon)
|
||||
{
|
||||
linker->defineSymbol("PAD", pad_code);
|
||||
|
@ -642,8 +642,8 @@ void PackPs1::pack(OutputFile *fo)
|
|||
memcpy(loader, getLoader(), lsize);
|
||||
patchPackHeader(loader, lsize);
|
||||
|
||||
if (!isCon && ph.method == M_LZMA && (HD_CODE_OFS + d_len + h_len) > CD_SEC)
|
||||
throwInternalError("lzma --boot-only loader > 2048");
|
||||
if (!isCon && ph.method == M_LZMA && (HD_CODE_OFS + d_len + h_len) > CD_SEC)
|
||||
throwInternalError("lzma --boot-only loader > 2048");
|
||||
|
||||
// ps1_exe_t structure
|
||||
fo->write(&oh, sizeof(oh));
|
||||
|
|
|
@ -227,9 +227,9 @@
|
|||
ADDBITS
|
||||
FILLBYTES
|
||||
2:
|
||||
ADDBITS_DONE
|
||||
ADDBITS_DONE
|
||||
.endif
|
||||
|
||||
|
||||
.endm
|
||||
|
||||
;//////////////////////////////////////
|
||||
|
@ -276,7 +276,7 @@
|
|||
.endif
|
||||
.else
|
||||
.ifc "\option", "sub_only"
|
||||
|
||||
|
||||
2:
|
||||
FILLBYTES
|
||||
.ifnb label
|
||||
|
|
Loading…
Reference in New Issue
Block a user