Upx_Doxygen
https://github.com/upx/upx
All Classes
p_lx_interp.h
1 /* p_lx_interp.h --
2 
3  This file is part of the UPX executable compressor.
4 
5  Copyright (C) 1996-2016 Markus Franz Xaver Johannes Oberhumer
6  Copyright (C) 1996-2016 Laszlo Molnar
7  Copyright (C) 2000-2016 John F. Reiser
8  All Rights Reserved.
9 
10  UPX and the UCL library are free software; you can redistribute them
11  and/or modify them under the terms of the GNU General Public License as
12  published by the Free Software Foundation; either version 2 of
13  the License, or (at your option) any later version.
14 
15  This program is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with this program; see the file COPYING.
22  If not, write to the Free Software Foundation, Inc.,
23  59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 
25  Markus F.X.J. Oberhumer Laszlo Molnar
26  <markus@oberhumer.com> <ezerotven+github@gmail.com>
27 
28  John F. Reiser
29  <jreiser@users.sourceforge.net>
30  */
31 
32 
33 #ifndef __UPX_P_LX_INTERP_H //{
34 #define __UPX_P_LX_INTERP_H 1
35 
36 
37 /*************************************************************************
38 // linux/interp386
39 **************************************************************************/
40 
42 {
43  typedef PackLinuxElf32x86 super;
44 public:
46  virtual ~PackLinuxElf32x86interp();
47  virtual int getVersion() const { return 13; }
48  virtual int getFormat() const { return UPX_F_LINUX_ELFI_i386; }
49  virtual const char *getName() const { return "linux/elfi386"; }
50  virtual const char *getFullName(const options_t *) const { return "i386-linux.elf.interp"; }
51 
52  virtual bool canPack();
53  virtual void unpack(OutputFile *fo);
54 
55 protected:
56  virtual void pack1(OutputFile *, Filter &); // generate executable header
57  virtual int pack2(OutputFile *, Filter &); // append compressed data
58  virtual void pack3(OutputFile *, Filter &); // build loader
59 };
60 
61 
62 #endif /*} already included */
63 
64 /* vim:set ts=4 sw=4 et: */
Definition: options.h:45
Definition: p_lx_elf.h:440
Definition: file.h:89
Definition: p_lx_interp.h:41
Definition: file.h:121
Definition: filter.h:53