From: Damjan Marion Date: Fri, 5 Nov 2021 18:44:17 +0000 (+0100) Subject: vppinfra: remove dead code in elf.c X-Git-Tag: v22.06-rc0~300 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F66%2F34366%2F2;hp=d4e90407d2f7259d9b5234ba90b6f27793c911b3;p=vpp.git vppinfra: remove dead code in elf.c Type: refactor Change-Id: Ia47644ca5fb7c848c0de7e7c3ed2c69e8d5cb80f Signed-off-by: Damjan Marion --- diff --git a/src/vppinfra/elf.c b/src/vppinfra/elf.c index 11fac45b27e..7a74fad4c4f 100644 --- a/src/vppinfra/elf.c +++ b/src/vppinfra/elf.c @@ -1455,7 +1455,6 @@ static void layout_sections (elf_main_t * em) { elf_section_t *s; - u32 n_sections_with_changed_exec_address = 0; u32 *deferred_symbol_and_string_sections = 0; u32 n_deleted_sections = 0; /* note: rebuild is always zero. Intent lost in the sands of time */ @@ -1614,7 +1613,6 @@ layout_sections (elf_main_t * em) if (s->header.flags & ELF_SECTION_FLAG_ALLOC) { s->exec_address_change = exec_address - s->header.exec_address; - n_sections_with_changed_exec_address += s->exec_address_change != 0; s->header.exec_address = exec_address; }