1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00
Commit Graph

163 Commits

Author SHA1 Message Date
Markus F.X.J. Oberhumer
99a1a85df6 Added some assertions.
committer: mfx <mfx> 976878985 +0000
2000-12-15 11:16:25 +00:00
Markus F.X.J. Oberhumer
e55feac192 Use `-O2' for compiling.
committer: mfx <mfx> 976878906 +0000
2000-12-15 11:15:06 +00:00
Markus F.X.J. Oberhumer
99715d19b6 Detabified.
committer: mfx <mfx> 976878882 +0000
2000-12-15 11:14:42 +00:00
Markus F.X.J. Oberhumer
4c2597d88b Use closex() instead of close() in OutputFile::dump().
committer: mfx <mfx> 976878029 +0000
2000-12-15 11:00:29 +00:00
Markus F.X.J. Oberhumer
2ed6608f08 Constified some pointers.
committer: mfx <mfx> 976877986 +0000
2000-12-15 10:59:46 +00:00
László Molnár
376db3edca filtering support addded.
committer: ml1050 <ml1050> 976877290 +0000
2000-12-15 10:48:10 +00:00
László Molnár
e18d9a036b filtering support added. better method for finding the compressed kernel.
committer: ml1050 <ml1050> 976877214 +0000
2000-12-15 10:46:54 +00:00
László Molnár
afcbf46519 patchFilter32 added.
committer: ml1050 <ml1050> 976877022 +0000
2000-12-15 10:43:42 +00:00
Markus F.X.J. Oberhumer
4b8385856e Added an assertion for Packer::getVersion() >= 11.
committer: mfx <mfx> 976778554 +0000
2000-12-14 07:22:34 +00:00
Markus F.X.J. Oberhumer
079461efdc Modified getVersion() to return 11, to accomodate for our generic packheader
code. All new executable formats should start with version 11.

committer: mfx <mfx> 976777695 +0000
2000-12-14 07:08:15 +00:00
Markus F.X.J. Oberhumer
8ef3beb6c6 Added Packer::checkFinalCompressionRatio().
committer: mfx <mfx> 976775892 +0000
2000-12-14 06:38:12 +00:00
Markus F.X.J. Oberhumer
f751473195 More rearrangements.
committer: mfx <mfx> 976773556 +0000
2000-12-14 05:59:16 +00:00
Markus F.X.J. Oberhumer
c750c67149 Updates for perl 5.6.
committer: mfx <mfx> 976769314 +0000
2000-12-14 04:48:34 +00:00
Markus F.X.J. Oberhumer
76651a39a5 Removed trailing whitespace.
committer: mfx <mfx> 976769300 +0000
2000-12-14 04:48:20 +00:00
Markus F.X.J. Oberhumer
68fd06daca Updated.
committer: mfx <mfx> 976723863 +0000
2000-12-13 16:11:03 +00:00
Markus F.X.J. Oberhumer
04c3173ef3 Rewrote the new vmlinuz/i386 format in a more object-oriented way. This
should hopefully also help adding support for filters and other
things.

committer: mfx <mfx> 976723821 +0000
2000-12-13 16:10:21 +00:00
Markus F.X.J. Oberhumer
d266c6bff1 Added Packer::getLoaderSectionStart(), where the size of the section
is allowed to be zero.

committer: mfx <mfx> 976719893 +0000
2000-12-13 15:04:53 +00:00
Markus F.X.J. Oberhumer
d465077f13 Removed traces of the old prototype vmlinux stuff.
committer: mfx <mfx> 976719035 +0000
2000-12-13 14:50:35 +00:00
Markus F.X.J. Oberhumer
42d29038ca Added l_vmlinz.h.
committer: mfx <mfx> 976715829 +0000
2000-12-13 13:57:09 +00:00
László Molnár
de30026bbe vmlinuz/i386 support.
committer: ml1050 <ml1050> 976714560 +0000
2000-12-13 13:36:00 +00:00
Markus F.X.J. Oberhumer
c9430123d1 Made some PackHeader methods strictly private to class Packer.
committer: mfx <mfx> 976602743 +0000
2000-12-12 06:32:23 +00:00
Markus F.X.J. Oberhumer
ddaad37503 A check in getLoaderSection() was too strict.
committer: mfx <mfx> 976602702 +0000
2000-12-12 06:31:42 +00:00
Markus F.X.J. Oberhumer
ccc6c7b5a0 Default to DEBUG=0 again.
committer: mfx <mfx> 976601714 +0000
2000-12-12 06:15:14 +00:00
Markus F.X.J. Oberhumer
c6481575f9 Rewrote PackHeader handling. In particuliar, Packer::putPackHeader()
was renamed to patchPackHeader(), and it is now under control of
the usual checkPatch() patch-order.

committer: mfx <mfx> 976601615 +0000
2000-12-12 06:13:35 +00:00
Markus F.X.J. Oberhumer
a8eac4f2f8 Added some checks about bad loaders.
committer: mfx <mfx> 976593293 +0000
2000-12-12 03:54:53 +00:00
Markus F.X.J. Oberhumer
d805abaadd Updated.
committer: mfx <mfx> 976592659 +0000
2000-12-12 03:44:19 +00:00
Markus F.X.J. Oberhumer
b2e0f807f2 All find*() and patch*() routines now return the buffer offset as an `int'.
committer: mfx <mfx> 976592518 +0000
2000-12-12 03:41:58 +00:00
Markus F.X.J. Oberhumer
1efd7f5cfa Throw an exception if we cannot create a temp/backup file name.
committer: mfx <mfx> 976591585 +0000
2000-12-12 03:26:25 +00:00
Markus F.X.J. Oberhumer
c3b4fd723f Removed trailing whitespace.
committer: mfx <mfx> 976591488 +0000
2000-12-12 03:24:48 +00:00
Markus F.X.J. Oberhumer
b3411ff0c6 Moved some string support functions from p_w32pe.cpp to util.h.
committer: mfx <mfx> 976588093 +0000
2000-12-12 02:28:13 +00:00
Markus F.X.J. Oberhumer
546f561bd3 The patch_*() functions now return the buffer offset.
committer: mfx <mfx> 976587711 +0000
2000-12-12 02:21:51 +00:00
László Molnár
2afc76f0e9 fixed a rare bug in the relocation handling code.
committer: ml1050 <ml1050> 976488481 +0000
2000-12-10 22:48:01 +00:00
John Reiser
ca7fc906cd Narrative description and list of formats for Linux.
committer: jreiser <jreiser> 976305201 +0000
2000-12-08 19:53:21 +00:00
Markus F.X.J. Oberhumer
b286b2d3c2 Don't try to unlink the temp file more than once.
committer: mfx <mfx> 975606488 +0000
2000-11-30 17:48:08 +00:00
Markus F.X.J. Oberhumer
3cff21e90e Updated from UPX 1.03 release.
committer: mfx <mfx> 975606081 +0000
2000-11-30 17:41:21 +00:00
Markus F.X.J. Oberhumer
6af392d582 Improved removal of temp output file in case of errors.
committer: mfx <mfx> 975606039 +0000
2000-11-30 17:40:39 +00:00
Markus F.X.J. Oberhumer
6ed8f2fd7b Improved error message.
committer: mfx <mfx> 975558083 +0000
2000-11-30 04:21:23 +00:00
Markus F.X.J. Oberhumer
f26380b110 Added some debug print statements.
committer: mfx <mfx> 975558043 +0000
2000-11-30 04:20:43 +00:00
Markus F.X.J. Oberhumer
8ea765516c Updated.
committer: mfx <mfx> 975557812 +0000
2000-11-30 04:16:52 +00:00
Markus F.X.J. Oberhumer
c350efb3d0 Renamed pass and total_passes to ui_pass and ui_total_passes in class Packer.
committer: mfx <mfx> 975421199 +0000
2000-11-28 14:19:59 +00:00
Markus F.X.J. Oberhumer
5abb6eb61a Small cleanup.
committer: mfx <mfx> 975421138 +0000
2000-11-28 14:18:58 +00:00
Markus F.X.J. Oberhumer
084cc89a41 Clarified some comments.
committer: mfx <mfx> 975421093 +0000
2000-11-28 14:18:13 +00:00
Markus F.X.J. Oberhumer
632a66eb7c Small cleanups.
committer: mfx <mfx> 975420927 +0000
2000-11-28 14:15:27 +00:00
Markus F.X.J. Oberhumer
690499b2c0 Removed a wrong assertion.
committer: mfx <mfx> 974918108 +0000
2000-11-22 18:35:08 +00:00
Markus F.X.J. Oberhumer
2e6c03690f Swapped the parameters in Packer::checkCompressionRatio() - all functions
now have the uncompressed size before the compressed size in the
parameter list.

committer: mfx <mfx> 974917952 +0000
2000-11-22 18:32:32 +00:00
Markus F.X.J. Oberhumer
7a5b0a09e0 Remove "-mno-schedule-prologue" when compiling under linux/i386 as the
current gcc cvs-snapshot seems to no longer accept this option.

committer: mfx <mfx> 974916395 +0000
2000-11-22 18:06:35 +00:00
Markus F.X.J. Oberhumer
cab6e01c64 Use nrelocs to test if there are any relocations.
committer: mfx <mfx> 974916297 +0000
2000-11-22 18:04:57 +00:00
Markus F.X.J. Oberhumer
f2bc08429f Try S_IWRITE if S_IWUSR is not defined.
committer: mfx <mfx> 974916264 +0000
2000-11-22 18:04:24 +00:00
Markus F.X.J. Oberhumer
8df72ace1f Updated the UI system.
committer: mfx <mfx> 974916150 +0000
2000-11-22 18:02:30 +00:00
Markus F.X.J. Oberhumer
95580cdc48 Fixed trailing tokens after a #endif.
committer: mfx <mfx> 974916117 +0000
2000-11-22 18:01:57 +00:00