mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Print a #define for the _SIZE. Enter 2006. Add John's name.
committer: mfx <mfx> 1138080110 +0000
This commit is contained in:
parent
ac03b89f38
commit
4ecfff4d8d
|
@ -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");
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user