Big re-sync with UPX 1.2 branch.
committer: mfx <mfx> 1026836316 +0000
This commit is contained in:
parent
666e8c2f2f
commit
14d22d29b1
@ -4,8 +4,8 @@
|
||||
#
|
||||
# This file is part of the UPX executable compressor.
|
||||
#
|
||||
# Copyright (C) 1996-2001 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2001 Laszlo Molnar
|
||||
# Copyright (C) 1996-2002 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2002 Laszlo Molnar
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# UPX and the UCL library are free software; you can redistribute them
|
||||
@ -23,8 +23,8 @@
|
||||
# If not, write to the Free Software Foundation, Inc.,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# markus@oberhumer.com ml1050@cdata.tvnet.hu
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# <mfx@users.sourceforge.net> <ml1050@users.sourceforge.net>
|
||||
#
|
||||
|
||||
#
|
||||
|
||||
@ -4,8 +4,8 @@
|
||||
#
|
||||
# This file is part of the UPX executable compressor.
|
||||
#
|
||||
# Copyright (C) 1996-2001 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2001 Laszlo Molnar
|
||||
# Copyright (C) 1996-2002 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2002 Laszlo Molnar
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# UPX and the UCL library are free software; you can redistribute them
|
||||
@ -23,8 +23,8 @@
|
||||
# If not, write to the Free Software Foundation, Inc.,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# markus@oberhumer.com ml1050@cdata.tvnet.hu
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# <mfx@users.sourceforge.net> <ml1050@users.sourceforge.net>
|
||||
#
|
||||
|
||||
#
|
||||
|
||||
@ -4,8 +4,8 @@
|
||||
#
|
||||
# This file is part of the UPX executable compressor.
|
||||
#
|
||||
# Copyright (C) 1996-2001 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2001 Laszlo Molnar
|
||||
# Copyright (C) 1996-2002 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2002 Laszlo Molnar
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# UPX and the UCL library are free software; you can redistribute them
|
||||
@ -23,8 +23,8 @@
|
||||
# If not, write to the Free Software Foundation, Inc.,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# markus@oberhumer.com ml1050@cdata.tvnet.hu
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# <mfx@users.sourceforge.net> <ml1050@users.sourceforge.net>
|
||||
#
|
||||
|
||||
#
|
||||
|
||||
@ -1,13 +1,11 @@
|
||||
#! /bin/sh
|
||||
set -e
|
||||
|
||||
#
|
||||
# asl_68k.sh --
|
||||
#
|
||||
# This file is part of the UPX executable compressor.
|
||||
#
|
||||
# Copyright (C) 1996-2001 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2001 Laszlo Molnar
|
||||
# Copyright (C) 1996-2002 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2002 Laszlo Molnar
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# UPX and the UCL library are free software; you can redistribute them
|
||||
@ -25,10 +23,11 @@ set -e
|
||||
# If not, write to the Free Software Foundation, Inc.,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# markus@oberhumer.com ml1050@cdata.tvnet.hu
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# <mfx@users.sourceforge.net> <ml1050@users.sourceforge.net>
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
# wrapper for the ASL cross-assembler (version 1.42bld9)
|
||||
# http://john.ccac.rwth-aachen.de:8000/as/
|
||||
|
||||
@ -4,8 +4,8 @@
|
||||
#
|
||||
# This file is part of the UPX executable compressor.
|
||||
#
|
||||
# Copyright (C) 1996-2001 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2001 Laszlo Molnar
|
||||
# Copyright (C) 1996-2002 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2002 Laszlo Molnar
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# UPX and the UCL library are free software; you can redistribute them
|
||||
@ -23,11 +23,14 @@
|
||||
# If not, write to the Free Software Foundation, Inc.,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# markus@oberhumer.com ml1050@cdata.tvnet.hu
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# <mfx@users.sourceforge.net> <ml1050@users.sourceforge.net>
|
||||
#
|
||||
|
||||
|
||||
use Compress::Zlib;
|
||||
|
||||
|
||||
$delim = $/;
|
||||
undef $/; # undef input record separator - read file as a whole
|
||||
|
||||
@ -62,8 +65,8 @@ print <<"EOF";
|
||||
|
||||
This file is part of the UPX executable compressor.
|
||||
|
||||
Copyright (C) 1996-2001 Markus Franz Xaver Johannes Oberhumer
|
||||
Copyright (C) 1996-2001 Laszlo Molnar
|
||||
Copyright (C) 1996-2002 Markus Franz Xaver Johannes Oberhumer
|
||||
Copyright (C) 1996-2002 Laszlo Molnar
|
||||
All Rights Reserved.
|
||||
|
||||
UPX and the UCL library are free software; you can redistribute them
|
||||
@ -81,8 +84,8 @@ print <<"EOF";
|
||||
If not, write to the Free Software Foundation, Inc.,
|
||||
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
markus\@oberhumer.com ml1050\@cdata.tvnet.hu
|
||||
Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
<mfx\@users.sourceforge.net> <ml1050\@users.sourceforge.net>
|
||||
*/
|
||||
|
||||
|
||||
@ -91,8 +94,9 @@ EOF
|
||||
|
||||
$s = $ident;
|
||||
$s =~ tr/a-z/A-Z/;
|
||||
$s .= "_ADLER32";
|
||||
printf("#define %s 0x%08x\n\n", $s, &adler32($data));
|
||||
printf("#define %s_ADLER32 0x%08x\n", $s, &adler32($data));
|
||||
printf("#define %s_CRC32 0x%08x\n", $s, &crc32($data));
|
||||
printf("\n");
|
||||
|
||||
printf("unsigned char %s[%d] = {", $ident, $n);
|
||||
for ($i = 0; $i < $n; $i++) {
|
||||
@ -123,7 +127,7 @@ exit(0);
|
||||
# //
|
||||
# ************************************************************************/
|
||||
|
||||
sub adler32 {
|
||||
sub adler32_OLD {
|
||||
local($d) = @_;
|
||||
local($n) = length($d);
|
||||
local($i);
|
||||
|
||||
@ -4,8 +4,8 @@
|
||||
#
|
||||
# This file is part of the UPX executable compressor.
|
||||
#
|
||||
# Copyright (C) 1996-2001 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2001 Laszlo Molnar
|
||||
# Copyright (C) 1996-2002 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2002 Laszlo Molnar
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# UPX and the UCL library are free software; you can redistribute them
|
||||
@ -23,8 +23,8 @@
|
||||
# If not, write to the Free Software Foundation, Inc.,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# markus@oberhumer.com ml1050@cdata.tvnet.hu
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# <mfx@users.sourceforge.net> <ml1050@users.sourceforge.net>
|
||||
#
|
||||
|
||||
|
||||
|
||||
@ -4,8 +4,8 @@
|
||||
#
|
||||
# This file is part of the UPX executable compressor.
|
||||
#
|
||||
# Copyright (C) 1996-2001 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2001 Laszlo Molnar
|
||||
# Copyright (C) 1996-2002 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2002 Laszlo Molnar
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# UPX and the UCL library are free software; you can redistribute them
|
||||
@ -23,8 +23,8 @@
|
||||
# If not, write to the Free Software Foundation, Inc.,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# markus@oberhumer.com ml1050@cdata.tvnet.hu
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# <mfx@users.sourceforge.net> <ml1050@users.sourceforge.net>
|
||||
#
|
||||
|
||||
|
||||
|
||||
@ -1,13 +1,11 @@
|
||||
#! /bin/sh
|
||||
set -e
|
||||
|
||||
#
|
||||
# setfold.sh --
|
||||
#
|
||||
# This file is part of the UPX executable compressor.
|
||||
#
|
||||
# Copyright (C) 1996-2001 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2001 Laszlo Molnar
|
||||
# Copyright (C) 1996-2002 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2002 Laszlo Molnar
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# UPX and the UCL library are free software; you can redistribute them
|
||||
@ -25,10 +23,11 @@ set -e
|
||||
# If not, write to the Free Software Foundation, Inc.,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# markus@oberhumer.com ml1050@cdata.tvnet.hu
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# <mfx@users.sourceforge.net> <ml1050@users.sourceforge.net>
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
file="$1"
|
||||
|
||||
|
||||
@ -4,8 +4,8 @@
|
||||
#
|
||||
# This file is part of the UPX executable compressor.
|
||||
#
|
||||
# Copyright (C) 1996-2001 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2001 Laszlo Molnar
|
||||
# Copyright (C) 1996-2002 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2002 Laszlo Molnar
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# UPX and the UCL library are free software; you can redistribute them
|
||||
@ -23,8 +23,8 @@
|
||||
# If not, write to the Free Software Foundation, Inc.,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# markus@oberhumer.com ml1050@cdata.tvnet.hu
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# <mfx@users.sourceforge.net> <ml1050@users.sourceforge.net>
|
||||
#
|
||||
|
||||
#
|
||||
|
||||
@ -4,8 +4,8 @@
|
||||
#
|
||||
# This file is part of the UPX executable compressor.
|
||||
#
|
||||
# Copyright (C) 1996-2001 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2001 Laszlo Molnar
|
||||
# Copyright (C) 1996-2002 Markus Franz Xaver Johannes Oberhumer
|
||||
# Copyright (C) 1996-2002 Laszlo Molnar
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# UPX and the UCL library are free software; you can redistribute them
|
||||
@ -23,8 +23,8 @@
|
||||
# If not, write to the Free Software Foundation, Inc.,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# markus@oberhumer.com ml1050@cdata.tvnet.hu
|
||||
# Markus F.X.J. Oberhumer Laszlo Molnar
|
||||
# <mfx@users.sourceforge.net> <ml1050@users.sourceforge.net>
|
||||
#
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user