From cab6e01c64dcce1bb0ec944baa83223a66e45431 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Wed, 22 Nov 2000 18:04:57 +0000 Subject: [PATCH] Use nrelocs to test if there are any relocations. committer: mfx 974916297 +0000 --- src/p_tos.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_tos.cpp b/src/p_tos.cpp index 2bc544a4..fb9a668a 100644 --- a/src/p_tos.cpp +++ b/src/p_tos.cpp @@ -497,7 +497,7 @@ void PackTos::pack(OutputFile *fo) // patch decompressor upx_byte *p = obuf + d_off; // patch "moveq.l #1,d3" or "jmp (a5)" - patch_be16(p,d_len,"u3", (relocsize > 4) ? 0x7601 : 0x4ed5); + patch_be16(p,d_len,"u3", (nrelocs > 0) ? 0x7601 : 0x4ed5); patch_be32(p,d_len,"up41", dirty_bss_d0); // set new file_hdr