From 5f3ebc8a7fb7c28ca42586cf32884362c0b7eabe Mon Sep 17 00:00:00 2001 From: John Reiser Date: Mon, 9 Jan 2023 09:33:34 -0800 Subject: [PATCH] clang-format modified: linker.cpp --- src/linker.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/linker.cpp b/src/linker.cpp index bc023df2..5c0d93be 100644 --- a/src/linker.cpp +++ b/src/linker.cpp @@ -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;