Markus F.X.J. Oberhumer
8d61e037f9
Cleanups.
2016-11-20 14:17:21 +01:00
Markus F.X.J. Oberhumer
33a51e69bf
Update submodules.
2016-11-20 13:56:42 +01:00
Markus F.X.J. Oberhumer
8772e52513
Remove old cruft.
2016-11-20 13:51:53 +01:00
John Reiser
9e1631ad4f
avoid null section name and zero alignment; enforce record === line
...
modified: linker.cpp
modified: linker.h
2016-11-19 17:38:23 -08:00
John Reiser
134b829d59
prevent warning C4319: '~': zero extending 'const unsigned int' to 'upx_uint64_t' of greater size
...
modified: linker.cpp
modified: p_lx_elf.cpp
modified: pefile.cpp
2016-11-19 16:46:01 -08:00
John Reiser
3df7d26101
propagate cpusubtype
...
modified: p_mach.cpp
modified: p_mach.h
2016-11-14 05:06:29 -08:00
John Reiser
cf56086f06
powerpc-darwin.macho-: remove debugging 'trap' :-)
...
modified: stub/powerpc-darwin.macho-upxmain.exe
modified: stub/powerpc-darwin.macho-upxmain.h
modified: stub/src/powerpc-darwin.macho-upxsubr.S
2016-11-12 20:13:12 -08:00
John Reiser
a72aca4379
powerpc (32-bit) works on MacOS using Sierra-compatible strategy.
...
modified: p_mach.cpp
modified: p_mach.h
modified: stub/powerpc-darwin.macho-entry.h
modified: stub/powerpc-darwin.macho-upxmain.exe
modified: stub/powerpc-darwin.macho-upxmain.h
modified: stub/src/powerpc-darwin.macho-entry.S
modified: stub/src/powerpc-darwin.macho-upxsubr.S
modified: stub/tmp/powerpc-darwin.macho-entry.bin.dump
2016-11-12 19:48:19 -08:00
John Reiser
edb0b7519a
Merge branch 'devel' of https://github.com/upx/upx into devel
2016-11-09 06:08:44 -08:00
John Reiser
3f14b9dab7
LC_UNIXTHREAD in ::pass4
...
modified: p_mach.cpp
2016-11-08 17:53:02 -08:00
Thierry Fauck
b1c07c22ce
powerpc64le -fpic dynamically linked binary support
...
Update stub for -fpic support
Handle 64K page in p_lx_elf.cpp
Signed-off-by: Thierry Fauck <tfauck@free.fr>
2016-11-08 18:29:10 +01:00
John Reiser
3b2c411274
Work on 32-bit PowerPC
...
modified: p_mach.cpp
modified: p_mach.h
2016-11-06 20:39:01 -08:00
John Reiser
e418af1ccd
Try to fix 32-bit PowerPC.
...
modified: p_mach.cpp
modified: p_mach.h
modified: stub/Makefile
new file: stub/powerpc-darwin.macho-upxmain.exe
new file: stub/powerpc-darwin.macho-upxmain.h
new file: stub/src/powerpc-darwin.macho-upxsubr.S
2016-11-06 17:59:16 -08:00
John Reiser
7dc004acb3
bug in other-endian ::canPack and ::canUnpack
...
modified: p_mach.cpp
2016-11-05 14:02:51 -07:00
John Reiser
2635472896
more unpacking for Mach-o (pre-3.91 ?)
...
modified: p_mach.cpp
modified: p_mach.h
2016-11-05 13:16:16 -07:00
John Reiser
5c0340f9ae
Merge branch 'devel' of https://github.com/upx/upx into devel
2016-10-19 15:20:04 -07:00
John Reiser
c2c970ee33
pacify c++-analyzer
...
modified: p_lx_elf.cpp
2016-10-19 15:19:33 -07:00
Markus F.X.J. Oberhumer
1e7950f671
Rebuild src/stubs from current sources. UNTESTED.
2016-10-19 14:59:33 +02:00
Thierry Fauck
8fde05191a
powerpc: Omit -Os flag to avoid use of savegrp*
...
Signed-off-by: Thierry Fauck <tfauck@free.fr>
modified: stub/Makefile
2016-10-19 14:41:18 +02:00
John Reiser
44328aee76
fix brk() problem when is_big: stub must munmap all_pages
...
https://github.com/upx/upx/issues/5
modified: p_lx_elf.cpp
modified: p_lx_elf.h
2016-10-15 14:06:56 -07:00
Markus F.X.J. Oberhumer
f606b5879b
Update Travis.
2016-10-11 22:33:45 +02:00
Thierry Fauck
9b86e68268
POWERPC: Allocate 4K / 64K pages depending on processor type.
...
Powerpc: ppc64le processor - Fix nrv2x-d.S compression routines
xstrip - disallow assert at line 178
Signed-off-by: Thierry Fauck <tfauck@free.fr>
modified: powerpc-darwin.dylib-entry.h
modified: powerpc-darwin.macho-entry.h
modified: powerpc-darwin.macho-fold.h
modified: powerpc-linux.elf-entry.h
modified: powerpc-linux.elf-fold.h
modified: powerpc-linux.kernel.vmlinux.h
modified: powerpc64le-darwin.dylib-entry.h
modified: powerpc64le-darwin.macho-entry.h
modified: powerpc64le-darwin.macho-fold.h
modified: powerpc64le-linux.elf-entry.h
modified: powerpc64le-linux.elf-fold.h
modified: powerpc64le-linux.kernel.vmlinux.h
modified: scripts/xstrip.py
modified: src/arch/powerpc/64le/nrv2b_d.S
modified: src/arch/powerpc/64le/nrv2d_d.S
modified: src/arch/powerpc/64le/nrv2e_d.S
modified: src/powerpc-linux.elf-entry.S
modified: src/powerpc-linux.elf-fold.S
modified: src/powerpc-linux.elf-main.c
modified: tmp/powerpc-linux.elf-entry.bin.dump
modified: tmp/powerpc64le-darwin.dylib-entry.bin.dump
modified: tmp/powerpc64le-darwin.macho-entry.bin.dump
modified: tmp/powerpc64le-linux.elf-entry.bin.dump
modified: tmp/powerpc64le-linux.kernel.vmlinux.bin.dump
2016-10-11 09:52:40 -04:00
John Reiser
d688a05ac7
DT_JMPREL vanished (binutils-2.26.1); check all DT_RELA.
...
modified: p_elf_enum.h
modified: p_lx_elf.cpp
2016-10-09 21:50:45 -07:00
John Reiser
9dd0e3ce4f
c++-analyzer finds the speck but misses the log.
...
modified: p_mach.cpp
2016-10-09 09:34:33 -07:00
John Reiser
ca2293f6d3
c++-analyzer needs improved range tracking.
...
modified: p_lx_elf.cpp
2016-10-09 09:33:35 -07:00
Markus F.X.J. Oberhumer
b0207ce524
Some refactoring. NFC.
2016-10-09 13:23:19 +02:00
László Molnár
297d44c614
PE: fixed file data alignment problem
2016-10-09 11:29:29 +02:00
Markus F.X.J. Oberhumer
22178f2224
Minor cleanups.
2016-10-09 03:12:19 +02:00
Markus F.X.J. Oberhumer
4157affbd7
pefile: make kernelDLL() return the same strings as in UPX 3.91.
2016-10-09 02:53:20 +02:00
Markus F.X.J. Oberhumer
4b991203df
pefile.cpp: make import sorting independent from qsort() internals.
2016-10-09 00:48:40 +02:00
Markus F.X.J. Oberhumer
38a265741c
Ongoing cleanups.
2016-10-08 18:49:14 +02:00
Markus F.X.J. Oberhumer
ed900b0476
More thorough use of O_BINARY.
2016-10-07 15:04:12 +02:00
John Reiser
42206364e5
Reduce Mach-o headers
...
modified: p_mach.cpp
2016-10-06 16:06:24 -07:00
John Reiser
82d9bb8f51
Fix namespace typedefs for Mach-o structs [upx_uint32_t ==> Word]
...
modified: p_mach.cpp
modified: p_mach.h
2016-10-06 14:00:05 -07:00
John Reiser
923a9d3f9b
Template PackMackBase<T>::pack3. Use more templates for ::pack4.
...
modified: p_mach.cpp
modified: p_mach.h
2016-10-06 08:55:09 -07:00
John Reiser
ae7660068b
Merge branch 'devel' of https://github.com/upx/upx into devel
2016-10-06 07:49:52 -07:00
John Reiser
f466c1d764
Cosmetic
...
modified: p_mach.cpp
2016-10-06 07:49:37 -07:00
Markus F.X.J. Oberhumer
6e76f8ef3a
Don't use variable length arrays (VLA).
2016-10-06 13:04:46 +02:00
Markus F.X.J. Oberhumer
b3a8d02caf
Cosmetic cleanups.
2016-10-06 12:31:03 +02:00
Markus F.X.J. Oberhumer
022ba32c1a
Improve robustness of seek() by adding some sanity checks.
2016-10-06 12:11:32 +02:00
Markus F.X.J. Oberhumer
8f5e89c900
Update testsuite.
2016-10-06 11:19:31 +02:00
Markus F.X.J. Oberhumer
d335d7bafd
p_mach.h: fix C++ syntax.
2016-10-06 09:51:58 +02:00
John Reiser
1f51ef7df6
Merge branch 'devel' of https://github.com/upx/upx into devel
2016-10-05 17:16:53 -07:00
Markus F.X.J. Oberhumer
ec082ee023
Cosmetic cleanup.
2016-10-06 00:45:42 +02:00
John Reiser
791fd9199e
Preserve alignment in .text
...
modified: p_mach.cpp
2016-10-05 12:52:52 -07:00
John Reiser
9e8baf1914
i386 for MacOS 10.12 "Sierra"
...
modified: p_mach.cpp
modified: stub/i386-darwin.macho-entry.h
modified: stub/src/i386-darwin.macho-entry.S
modified: stub/tmp/i386-darwin.macho-entry.bin.dump
2016-10-05 11:25:16 -07:00
John Reiser
64b7080532
Merge branch 'devel' of https://github.com/upx/upx into devel
2016-10-04 21:05:44 -07:00
John Reiser
8fd5479f32
Templates for ::pack4; i386 now packs, needs work before running.
...
modified: p_mach.cpp
modified: p_mach.h
new file: stub/i386-darwin.macho-upxmain.exe
new file: stub/i386-darwin.macho-upxmain.h
new file: stub/src/i386-darwin.macho-upxmain.c
2016-10-04 19:58:04 -07:00
John Reiser
07b41b9bc3
i386-darwin.macho-upxmain.h
...
modified: Makefile
2016-10-04 10:48:44 -07:00
John Reiser
8ebadfafe9
Standalone bswap, bzero, syscalls for i386-darwin.macho
...
new file: i386-darwin.macho-upxsubr.S
2016-10-04 10:46:59 -07:00
John Reiser
3283896e4b
Templatize ::buildLoader
...
modified: p_mach.cpp
modified: p_mach.h
2016-10-04 08:54:55 -07:00
John Reiser
b444bcf418
On the way to templates and mach-o/i386.
...
modified: p_mach.cpp
modified: p_mach.h
2016-10-03 22:00:26 -07:00
Markus F.X.J. Oberhumer
13034577fc
Fix previous commit.
2016-10-04 00:56:01 +02:00
Markus F.X.J. Oberhumer
9feefc2e7f
Makefile: added run-testsuite target.
2016-10-04 00:42:24 +02:00
John Reiser
a5393e985d
Merge branch 'devel' of https://github.com/upx/upx into devel
2016-10-03 09:42:48 -07:00
John Reiser
e3fe0dc89b
Avoid bug in ld-linux to set brk(0) when .p_align is large.
...
modified: p_lx_elf.cpp
2016-10-03 09:41:05 -07:00
Markus F.X.J. Oberhumer
42d49e9d50
Update Makefile and check_whitespace.sh.
2016-10-03 13:13:13 +02:00
Markus F.X.J. Oberhumer
06eb244800
Add check_whitespace_git.sh. Minor cleanups.
2016-10-03 04:47:02 +02:00
John Reiser
870cdfa51f
Merge branch 'devel' of https://github.com/upx/upx into devel
2016-10-02 10:47:59 -07:00
John Reiser
93787c74ee
Rewrite linfo in output file.
...
modified: p_mach.cpp
2016-10-02 10:47:37 -07:00
Markus F.X.J. Oberhumer
945323fe15
Fix a compilation warning.
2016-10-02 15:54:14 +02:00
Markus F.X.J. Oberhumer
5e41e69b27
Remove trailing whitespace from p_mach.cpp.
2016-10-02 15:48:56 +02:00
Markus F.X.J. Oberhumer
9d14185f7d
Add check_whitespace.sh and call it from Makefile. Update Travis.
2016-10-02 15:46:57 +02:00
John Reiser
0f74162551
Decompression works after codesign. (Still more is possible.)
...
modified: p_mach.cpp
2016-10-01 20:38:25 -07:00
John Reiser
00b1ff1ff6
Apple codesign now works.
...
modified: p_mach.cpp
2016-10-01 17:40:32 -07:00
John Reiser
977024ea94
Fix clang scan-build errors.
...
modified: p_lx_elf.cpp
2016-10-01 17:38:16 -07:00
Markus F.X.J. Oberhumer
ee093e5232
Minor cleanups.
2016-10-01 19:59:10 +02:00
Markus F.X.J. Oberhumer
e41c475671
Use calloc instead of malloc to pacify valgrind.
2016-09-28 21:30:38 +02:00
Markus F.X.J. Oberhumer
b9b3b67b95
Silence some pedantic compilation warnings about unused results.
2016-09-28 13:50:50 +02:00
Markus F.X.J. Oberhumer
0d57d2cfe3
Remove old cruft.
2016-09-28 13:39:49 +02:00
Markus F.X.J. Oberhumer
32de5d0d7f
Fix msvc build.
2016-09-28 13:34:39 +02:00
Markus F.X.J. Oberhumer
51eab2a4b7
Update Makefile configuration variables.
2016-09-28 13:07:39 +02:00
Markus F.X.J. Oberhumer
f7554374ab
Update email address.
2016-09-28 12:25:01 +02:00
Markus F.X.J. Oberhumer
b4870f62c9
Add option --prefer-ucl.
2016-09-28 11:57:15 +02:00
Markus F.X.J. Oberhumer
f1d713ebf6
Silence some pedantic warnings.
2016-09-28 11:29:20 +02:00
Markus F.X.J. Oberhumer
a7386238dd
Update Travis.
2016-09-27 20:29:04 +02:00
Markus F.X.J. Oberhumer
6b39d122a6
Support MSVC.
2016-09-27 20:23:23 +02:00
Markus F.X.J. Oberhumer
a0582c5380
pefile.cpp: don't use VLA.
2016-09-27 20:19:43 +02:00
Markus F.X.J. Oberhumer
1f37112969
Moving to github.
2016-09-27 08:41:11 +02:00
Markus F.X.J. Oberhumer
361958db76
Check endian in assertPacker().
2016-09-26 15:38:04 +02:00
Markus F.X.J. Oberhumer
8bc7880b19
Improve gitrev handling.
2016-09-26 15:32:01 +02:00
John Reiser
48e00b371c
Move UPX_F_MACH_PPC64LE and friends to 38 et seq, the little-endian side.
...
modified: conf.h
2016-09-26 05:53:11 -07:00
Markus F.X.J. Oberhumer
aee52d3880
Improve gitrev handling.
2016-09-26 10:35:29 +02:00
Markus F.X.J. Oberhumer
e6da9e8d1a
Small snprintf.cpp update.
2016-09-26 09:12:53 +02:00
Markus F.X.J. Oberhumer
156ca03b67
Silence some pedantic compiler warnings.
2016-09-26 09:12:53 +02:00
Markus F.X.J. Oberhumer
3f4419b177
Update stub/src for recent changes.
2016-09-26 09:12:53 +02:00
Markus F.X.J. Oberhumer
676f860d7d
Normalize whitespace.
2016-09-26 09:12:53 +02:00
Markus F.X.J. Oberhumer
5ce93ae0c7
Update submodules.
2016-09-26 09:12:53 +02:00
László Molnár
43231826b9
fixed address sanitizer problem (untested)
2016-09-26 08:56:23 +02:00
Markus F.X.J. Oberhumer
a29064107e
Bump version date.
2016-09-25 14:01:40 +02:00
Markus F.X.J. Oberhumer
daafc29d2b
Add support for UPX_VERSION_GITREV. Some cleanups.
2016-09-25 09:41:26 +02:00
John Reiser
3c786acf2b
Fix bug in Mach-O stub.
...
modified: amd64-darwin.macho-upxmain.exe
modified: amd64-darwin.macho-upxmain.h
modified: src/amd64-darwin.macho-upxmain.c
2016-09-24 19:44:00 -07:00
John Reiser
53c3817d4d
Allow longer Mach-O headers.
...
modified: amd64-darwin.macho-upxmain.exe
2016-09-24 17:26:00 -07:00
John Reiser
9109254488
Allow longer Mach-O headers.
...
modified: src/amd64-darwin.macho-upxmain.c
2016-09-24 17:21:07 -07:00
John Reiser
df19f0d5ec
Try harder to decompress Mach-O I386, too.
...
modified: p_mach.cpp
modified: p_mach.h
2016-09-24 09:15:10 -07:00
John Reiser
093362e479
Merge branch 'devel' of https://github.com/upx/upx into devel
2016-09-24 06:44:19 -07:00
John Reiser
7826a3652b
Try harder to decompress Mach-O, because pirates.
...
modified: p_mach.cpp
modified: p_mach.h
2016-09-24 06:43:16 -07:00
Markus F.X.J. Oberhumer
c27b7e52e1
Small Makefile update.
2016-09-24 13:49:07 +02:00
Markus F.X.J. Oberhumer
6f33929f91
Cleanups.
2016-09-24 12:10:46 +02:00
Markus F.X.J. Oberhumer
3841be7e20
Remove *.bin files.
2016-09-24 11:18:18 +02:00
John Reiser
2c28521283
NetBSDElf32x86 should not impersonate [i386-linux.elf, linux/i386]
2016-09-23 19:31:26 -07:00
László Molnár
1c735cc204
fixed too strict checks in resource handling
2016-09-22 22:17:08 +02:00
Markus F.X.J. Oberhumer
b1a2f8fec0
Update vim modelines.
2016-09-22 18:17:37 +02:00
Markus F.X.J. Oberhumer
83828aa8a3
Update vim modelines.
2016-09-22 17:29:43 +02:00
Markus F.X.J. Oberhumer
4eb81b4d66
Update stub/scripts.
2016-09-22 14:27:57 +02:00
Markus F.X.J. Oberhumer
96d9968db5
Welcome 2016.
2016-09-22 14:07:14 +02:00
Markus F.X.J. Oberhumer
2781e37ec0
Mark version as "BETA".
2016-09-22 14:05:08 +02:00
Markus F.X.J. Oberhumer
6d61e773b5
Bump version year.
2016-09-22 14:02:44 +02:00
Markus F.X.J. Oberhumer
c5171114d1
Clean up stub/Makefile. NFC.
2016-09-22 13:11:14 +02:00
Markus F.X.J. Oberhumer
0ca0a832de
stub: arm renaming.
2016-09-22 12:36:00 +02:00
Markus F.X.J. Oberhumer
aef54a4bfd
Update source for previous rename.
2016-09-22 12:12:43 +02:00
Markus F.X.J. Oberhumer
4c473acfec
stub: arm renaming.
2016-09-22 12:05:53 +02:00
Markus F.X.J. Oberhumer
0de41e97ac
Update source for previous rename.
2016-09-22 11:54:44 +02:00
Markus F.X.J. Oberhumer
0e52ab3f90
stub: arm renaming.
2016-09-22 11:52:50 +02:00
Markus F.X.J. Oberhumer
797679b42c
stub: arm renaming.
2016-09-22 11:43:23 +02:00
Markus F.X.J. Oberhumer
1bc8b6f46e
Update source for previous rename.
2016-09-22 11:29:12 +02:00
Markus F.X.J. Oberhumer
f322b580ff
stub: arm renaming.
2016-09-22 11:28:00 +02:00
Markus F.X.J. Oberhumer
2b2f33e3f5
Update source for previous rename.
2016-09-22 11:22:18 +02:00
Markus F.X.J. Oberhumer
ce29cd2fad
stub: arm renaming.
2016-09-22 11:20:53 +02:00
Markus F.X.J. Oberhumer
0d5843f44e
Update source for previous rename.
2016-09-22 11:17:53 +02:00
Markus F.X.J. Oberhumer
e36e8e3b33
stub: arm renaming.
2016-09-22 11:15:49 +02:00
Markus F.X.J. Oberhumer
e251a1ca19
Update source for previous rename.
2016-09-22 11:11:03 +02:00
Markus F.X.J. Oberhumer
4aedb00e43
stub: arm renaming.
2016-09-22 11:06:53 +02:00
Markus F.X.J. Oberhumer
10a0469221
Update source for previous rename.
2016-09-22 10:56:33 +02:00
Markus F.X.J. Oberhumer
d3419acada
stub: start arm renaming.
2016-09-22 10:52:26 +02:00
Markus F.X.J. Oberhumer
65ea4117ca
Add some comments to stub/Makefile in prepartion of renames.
2016-09-22 10:44:40 +02:00
Markus F.X.J. Oberhumer
8b0101dcab
Update source for previous rename.
2016-09-22 10:25:45 +02:00
Markus F.X.J. Oberhumer
188f67cfca
stub: rename ppc64le to powerpc64le.
2016-09-22 10:20:54 +02:00
Markus F.X.J. Oberhumer
053c9dc0e1
stub: arm64: rename some files, remove unused files.
2016-09-22 09:55:13 +02:00
Markus F.X.J. Oberhumer
493d9f1b9d
Ongoing cleanups.
2016-09-22 03:23:55 +02:00
Markus F.X.J. Oberhumer
e28793f128
upx-clang-format -i packhead.cpp
2016-09-22 00:59:48 +02:00
Markus F.X.J. Oberhumer
ea2bddf245
Fix one more file_image usage.
2016-09-22 00:58:43 +02:00
Markus F.X.J. Oberhumer
763b3c05af
Don't use "long". Cleanups.
2016-09-22 00:47:35 +02:00
Markus F.X.J. Oberhumer
473cfb54be
Normalize whitespace.
2016-09-22 00:02:58 +02:00
Markus F.X.J. Oberhumer
a7fd742c17
Canonicalize the names of our executable formats.
2016-09-21 23:58:08 +02:00
Markus F.X.J. Oberhumer
b66ba140cb
More cleanups.
2016-09-21 23:18:19 +02:00
Markus F.X.J. Oberhumer
242f606a29
p_lx_elf.h: turn file_image into a MemBuffer.
2016-09-21 22:22:41 +02:00
Markus F.X.J. Oberhumer
60a1214d7e
upx-clang-format -i ui.cpp
2016-09-21 21:38:56 +02:00
Markus F.X.J. Oberhumer
189ab8c8e8
upx-clang-format -i ui.h
2016-09-21 21:35:13 +02:00
Markus F.X.J. Oberhumer
3765ca4e92
Cleanups and cruft removal.
2016-09-21 21:33:53 +02:00
Markus F.X.J. Oberhumer
df87d76070
p_mach.cpp: use proper types for variable "zero".
2016-09-21 20:39:00 +02:00
Markus F.X.J. Oberhumer
8fbf0b406b
p_vmlinx.cpp: remove unused code fragment.
2016-09-21 17:56:43 +02:00
Markus F.X.J. Oberhumer
633073803f
upx-clang-format -i s_djgpp2.cpp s_object.cpp s_vcsa.cpp s_win32.cpp screen.h
2016-09-21 17:46:42 +02:00
Markus F.X.J. Oberhumer
104da198d3
Minor screen cleanup.
2016-09-21 17:43:32 +02:00
Markus F.X.J. Oberhumer
b3121e4534
Use upx_uint16_t instead of unsigned short.
2016-09-21 17:40:11 +02:00
Markus F.X.J. Oberhumer
3bb654cc85
Ongoing cleanups and cruft removal.
2016-09-21 16:42:25 +02:00
John Reiser
d2830db94d
Fix memory leak
...
modified: p_lx_elf.cpp
2016-09-20 20:43:48 -07:00
John Reiser
ad6914b938
PackMachBase<T>::canUnpack() finds overlay_offset for decompression
...
modified: p_mach.cpp
modified: p_mach.h
2016-09-20 20:07:42 -07:00
Markus F.X.J. Oberhumer
544ec21fc2
Fix building with clang.
2016-09-21 01:09:07 +02:00
Markus F.X.J. Oberhumer
1bb0fa1809
Fix a few things spotted by the gcc-6 sanitizer. Needs review.
2016-09-21 00:35:51 +02:00
Markus F.X.J. Oberhumer
ffa0efc898
Makefile: add support for USE_SANITIZE.
2016-09-21 00:34:52 +02:00
Markus F.X.J. Oberhumer
af6b4b8c27
Fix previous commit.
2016-09-21 00:34:20 +02:00
Markus F.X.J. Oberhumer
3f7c1f966b
Minor cleanups.
2016-09-20 22:14:25 +02:00
Markus F.X.J. Oberhumer
535515f296
Update submodules.
2016-09-20 22:13:07 +02:00
Markus F.X.J. Oberhumer
7af6c4b10e
Use new style casts. Cleanups.
2016-09-20 20:59:34 +02:00
Markus F.X.J. Oberhumer
2076bef95b
upx-clang-format -i stdcxx.cpp stdcxx.h ; remove old cruft.
2016-09-20 20:40:08 +02:00
John Reiser
48ce1f1814
Merge branch 'master' of https://github.com/upx/upx
2016-09-20 10:56:00 -07:00
John Reiser
5151c8a505
Indentation error detected by g++-6
...
modified: p_lx_elf.cpp
2016-09-20 10:55:14 -07:00
Markus F.X.J. Oberhumer
44248f19b5
Introduce mem_size() and New() and start using it.
2016-09-20 15:24:07 +02:00
Markus F.X.J. Oberhumer
8d433f2580
Update submodules.
2016-09-20 15:09:50 +02:00
Markus F.X.J. Oberhumer
272fe5488c
Remove Makefile fragment from p_vmlinx.cpp.
2016-09-20 13:06:24 +02:00
Markus F.X.J. Oberhumer
c97765de14
upx-clang-format -i snprintf.cpp
2016-09-20 13:03:48 +02:00
Markus F.X.J. Oberhumer
077bbdfc78
conf.h: check for proper WITH_LZMA.
2016-09-20 12:45:28 +02:00
Markus F.X.J. Oberhumer
2fb38ce13a
Update Makefile for upx-lzma-sdk.
2016-09-20 12:37:00 +02:00
Markus F.X.J. Oberhumer
22dc183f25
Add upx-lzma-sdk submodule.
2016-09-20 12:35:15 +02:00
Markus F.X.J. Oberhumer
3c492c3fc7
Update Makefile so that my build scripts work again.
2016-09-20 11:29:28 +02:00
Markus F.X.J. Oberhumer
d71db2978e
Remove some old cruft.
2016-09-20 11:24:18 +02:00
Markus F.X.J. Oberhumer
e4723e0bad
Avoid some compiler warnings.
2016-09-20 10:54:27 +02:00
Markus F.X.J. Oberhumer
dc56c4e530
bptr.h: size optimizations.
2016-09-20 10:30:09 +02:00
Markus F.X.J. Oberhumer
9579a51a8b
pefile.cpp: always use BoundedPtr.
2016-09-20 10:20:42 +02:00
Markus F.X.J. Oberhumer
71f897ebf5
Avoid a -Wsign-compare warning.
2016-09-20 10:08:32 +02:00
Markus F.X.J. Oberhumer
09d9f71ae9
p_mach.h: use proper upx types.
2016-09-20 10:05:08 +02:00
John Reiser
c678ccdfb1
stub/ppc64le-darwin.macho-fold.h is flapping (works one time, not the next.)
2016-09-19 21:25:30 -07:00
John Reiser
bbbebe343b
Try to recover powerpc64le. Still not successful [TOC space?]
...
modified: Makefile
new file: ppc64-savegpr0.S
modified: ppc64le-darwin.macho-fold.h
2016-09-19 20:05:52 -07:00
John Reiser
033cb4f0c2
Fix merge
...
modified: p_mach.cpp
2016-09-19 18:49:40 -07:00
John Reiser
d750034b79
amd64-darwin.macho-upxmain.exe and .h
2016-09-19 18:32:26 -07:00
Markus F.X.J. Oberhumer
a2063f0628
Normalize whitespace.
2016-09-20 02:06:58 +02:00
Markus F.X.J. Oberhumer
acf2f2ffc4
Merge branch 'sierra'
2016-09-20 01:54:33 +02:00
Markus F.X.J. Oberhumer
d14f484c4b
Moving to github.
2016-09-19 22:41:32 +02:00
Markus F.X.J. Oberhumer
695e515a65
stub: update powerpc64le settings.
2016-09-19 22:22:21 +02:00
upstream
61089feee7
New ACC version.
2016-09-19 12:44:29 +00:00
Markus F.X.J. Oberhumer
ddc9b10cd3
Add scripts/upx-clang-format.
2016-09-19 11:04:25 +02:00
Markus F.X.J. Oberhumer
f95c92b431
Create a dummy stub/ppc64le-darwin.macho-fold.h so that upx builds again.
2016-09-19 10:54:23 +02:00
Markus F.X.J. Oberhumer
eba65a94e6
Add missing *.dump files to repo.
2016-09-19 10:44:22 +02:00
John Reiser
c28a0c6bb8
Synchronize stubs
...
modified: src/stub/arm64-darwin.macho-entry.h
modified: src/stub/arm64-darwin.macho-fold.h
modified: src/stub/ppc64le-linux.elf-fold.h
modified: src/stub/tmp/arm64-darwin.macho-entry.bin.dump
2016-09-18 12:45:11 -07:00
Markus F.X.J. Oberhumer
d6bacd9b47
Remove src/stub/scripts/UNUSED.
2016-09-18 16:07:47 +02:00
Markus F.X.J. Oberhumer
70b1657323
Update for upx-stubtools v20160918.
2016-09-18 16:00:29 +02:00
John Reiser
45c75d42ad
Catch up to upxtools 20160902; add dangling arm/v8a/lzma_d.S
2016-09-17 19:51:32 -07:00
jreiser@BitWagon.com
d4e55af2c2
Propagate LC_VERSION_MIN_MACOSX and LC_SOURCE_VERSION
...
changed src/p_mach.cpp
2016-09-17 16:40:07 -07:00
jreiser@BitWagon.com
48791a329d
overlay_offset for decompress
...
changed src/p_mach.cpp
2016-09-17 16:16:41 -07:00
jreiser@BitWagon.com
9b26ebed75
LINKEDIT has unfilter and decompressor
...
changed src/p_mach.cpp
changed src/stub/amd64-darwin.macho-upxmain.h
changed src/stub/src/amd64-darwin.macho-upxmain.c
2016-09-17 15:24:23 -07:00
jreiser@BitWagon.com
e2160fb6c9
segLINK.initprot |= VM_PROT_EXECUTE
...
changed src/p_mach.cpp
2016-09-17 10:41:38 -07:00
jreiser@BitWagon.com
345a1c64f9
Omit Mach_command from stub where allowed.
...
changed src/p_mach.cpp
2016-09-17 09:36:58 -07:00
jreiser@BitWagon.com
7ad1e7756b
Cleanup for checkin
...
changed src/p_mach.cpp
2016-09-17 06:49:41 -07:00
jreiser@BitWagon.com
90caf19e9e
Cleanup amd64-darwin.macho-upxmain.c
...
changed src/stub/amd64-darwin.macho-upxmain.h
changed src/stub/src/amd64-darwin.macho-upxmain.c
changed src/stub/src/amd64-darwin.macho-upxsubr.S
2016-09-16 21:29:37 -07:00
jreiser@BitWagon.com
8d0b3b7d44
Fix segXHDR, but assume no __DATA in stub for now.
...
changed src/p_mach.cpp
2016-09-15 21:44:17 -07:00
jreiser@BitWagon.com
4c253d68d4
new start address 0xfe000000
...
changed src/stub/amd64-darwin.macho-upxmain.h
2016-09-15 21:38:39 -07:00
jreiser@BitWagon.com
73d1b331f1
trim Mach_command from stub. [Dirty, needs cleanup!]
...
changed src/p_mach.cpp
2016-09-13 20:20:41 -07:00
jreiser@BitWagon.com
af2fddfd6d
rebuild stub
...
changed src/stub/amd64-darwin.macho-upxmain.h
2016-09-13 20:18:54 -07:00
jreiser@BitWagon.com
3e065ead65
fix .bss in floating dyld
...
changed src/stub/src/amd64-darwin.macho-upxmain.c
2016-09-13 20:17:51 -07:00