From 4ecfff4d8d8f19aa0b227ff9335ba73d807610e2 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Tue, 24 Jan 2006 05:21:50 +0000 Subject: [PATCH] Print a #define for the _SIZE. Enter 2006. Add John's name. committer: mfx 1138080110 +0000 --- src/stub/scripts/bin2h.pl | 11 +++++++---- src/stub/scripts/bin2h.py | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/stub/scripts/bin2h.pl b/src/stub/scripts/bin2h.pl index 8ccd4c4d..b7368309 100644 --- a/src/stub/scripts/bin2h.pl +++ b/src/stub/scripts/bin2h.pl @@ -4,8 +4,9 @@ # # This file is part of the UPX executable compressor. # -# Copyright (C) 1996-2005 Markus Franz Xaver Johannes Oberhumer -# Copyright (C) 1996-2005 Laszlo Molnar +# Copyright (C) 1996-2006 Markus Franz Xaver Johannes Oberhumer +# Copyright (C) 1996-2006 Laszlo Molnar +# Copyright (C) 2000-2006 John F. Reiser # All Rights Reserved. # # UPX and the UCL library are free software; you can redistribute them @@ -80,8 +81,9 @@ print <<"EOF"; This file is part of the UPX executable compressor. - Copyright (C) 1996-2005 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 1996-2005 Laszlo Molnar + Copyright (C) 1996-2006 Markus Franz Xaver Johannes Oberhumer + Copyright (C) 1996-2006 Laszlo Molnar + Copyright (C) 2000-2006 John F. Reiser All Rights Reserved. UPX and the UCL library are free software; you can redistribute them @@ -109,6 +111,7 @@ EOF $s = $ident; $s =~ tr/a-z/A-Z/; +printf("#define %s_SIZE %d\n", $s, $n); printf("#define %s_ADLER32 0x%08x\n", $s, &adler32($data)); printf("#define %s_CRC32 0x%08x\n", $s, &crc32($data)); printf("\n"); diff --git a/src/stub/scripts/bin2h.py b/src/stub/scripts/bin2h.py index c7fc9bdc..21890faf 100644 --- a/src/stub/scripts/bin2h.py +++ b/src/stub/scripts/bin2h.py @@ -6,8 +6,9 @@ # # This file is part of the UPX executable compressor. # -# Copyright (C) 1996-2005 Markus Franz Xaver Johannes Oberhumer -# Copyright (C) 1996-2005 Laszlo Molnar +# Copyright (C) 1996-2006 Markus Franz Xaver Johannes Oberhumer +# Copyright (C) 1996-2006 Laszlo Molnar +# Copyright (C) 2000-2006 John F. Reiser # All Rights Reserved. # # UPX and the UCL library are free software; you can redistribute them @@ -38,8 +39,9 @@ def w_header(w, ifile, ofile, n): w("""\n\ This file is part of the UPX executable compressor. - Copyright (C) 1996-2005 Markus Franz Xaver Johannes Oberhumer - Copyright (C) 1996-2005 Laszlo Molnar + Copyright (C) 1996-2006 Markus Franz Xaver Johannes Oberhumer + Copyright (C) 1996-2006 Laszlo Molnar + Copyright (C) 2000-2006 John F. Reiser All Rights Reserved. UPX and the UCL library are free software; you can redistribute them @@ -63,6 +65,7 @@ def w_header(w, ifile, ofile, n): def w_checksum(w, s, data): + w("#define %s_SIZE %d\n" % (s, len(data))) w("#define %s_ADLER32 0x%08x\n" % (s, 0xffffffffL & zlib.adler32(data))) w("#define %s_CRC32 0x%08x\n" % (s, 0xffffffffL & zlib.crc32(data))) w("\n")