Merge branch 'devel' of https://github.com/upx/upx into devel
This commit is contained in:
+1
-2
@@ -641,8 +641,7 @@ void ElfLinkerArmLE::relocate1(const Relocation *rel, upx_byte *location, upx_ui
|
||||
}
|
||||
|
||||
void ElfLinkerArm64LE::relocate1(const Relocation *rel, upx_byte *location, upx_uint64_t value,
|
||||
const char *type)
|
||||
{
|
||||
const char *type) {
|
||||
if (strncmp(type, "R_AARCH64_", 10))
|
||||
return super::relocate1(rel, location, value, type);
|
||||
type += 10;
|
||||
|
||||
+2
-2
@@ -182,8 +182,8 @@ bool PackHeader::fillPackHeader(const upx_bytep buf, int blen) {
|
||||
filter_cto = 0;
|
||||
|
||||
if (opt->debug.debug_level) {
|
||||
fprintf(stderr, " fillPackHeader version=%d format=%d method=%d level=%d\n",
|
||||
version, format, method, level);
|
||||
fprintf(stderr, " fillPackHeader version=%d format=%d method=%d level=%d\n", version,
|
||||
format, method, level);
|
||||
}
|
||||
const int size = getPackHeaderSize();
|
||||
if (boff + size <= 0 || boff + size > blen)
|
||||
|
||||
+8
-8
@@ -137,14 +137,14 @@ Packer *PackMaster::visitAllPackers(visit_func_t func, InputFile *f, const optio
|
||||
void *user) {
|
||||
Packer *p = NULL;
|
||||
|
||||
#define D(Klass) \
|
||||
ACC_BLOCK_BEGIN \
|
||||
Klass *const kp = new Klass(f); \
|
||||
if (o->debug.debug_level) \
|
||||
fprintf(stderr, "visitAllPackers: (ver=%d, fmt=%3d) %s\n", \
|
||||
kp->getVersion(), kp->getFormat(), #Klass); \
|
||||
if ((p = func(kp, user))) \
|
||||
return p; \
|
||||
#define D(Klass) \
|
||||
ACC_BLOCK_BEGIN \
|
||||
Klass *const kp = new Klass(f); \
|
||||
if (o->debug.debug_level) \
|
||||
fprintf(stderr, "visitAllPackers: (ver=%d, fmt=%3d) %s\n", kp->getVersion(), \
|
||||
kp->getFormat(), #Klass); \
|
||||
if ((p = func(kp, user)) != NULL) \
|
||||
return p; \
|
||||
ACC_BLOCK_END
|
||||
|
||||
// note: order of tries is important !
|
||||
|
||||
Reference in New Issue
Block a user