mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
clang-format
modified: linker.cpp
This commit is contained in:
parent
425b1b44bc
commit
5f3ebc8a7f
|
@ -158,7 +158,7 @@ void ElfLinker::init(const void *pdata_v, int plen, unsigned pxtra) {
|
|||
input[inputlen] = 0; // NUL terminate
|
||||
|
||||
output_capacity = (inputlen ? (inputlen + pxtra) : 0x4000);
|
||||
assert(output_capacity <= (1<<16)); // LE16 l_info.l_size
|
||||
assert(output_capacity <= (1 << 16)); // LE16 l_info.l_size
|
||||
output = new upx_byte[output_capacity];
|
||||
outputlen = 0;
|
||||
|
||||
|
@ -585,8 +585,7 @@ void ElfLinkerAMD64::relocate1(const Relocation *rel, upx_byte *location, upx_ui
|
|||
type += 2;
|
||||
value -= rel->section->offset + rel->offset;
|
||||
range_check = true;
|
||||
}
|
||||
else if (strncmp(type, "PLT", 3) == 0) {
|
||||
} else if (strncmp(type, "PLT", 3) == 0) {
|
||||
type += 3;
|
||||
value -= rel->section->offset + rel->offset;
|
||||
range_check = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user