diff options
author | Damjan Marion <damarion@cisco.com> | 2021-11-05 19:44:17 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-11-05 22:05:32 +0000 |
commit | 229b28e8d22009faeffb57218bb07bf75ec3c9c7 (patch) | |
tree | 66d98c48371070c3943090993c011a38a9710213 /src/vppinfra | |
parent | d4e90407d2f7259d9b5234ba90b6f27793c911b3 (diff) |
vppinfra: remove dead code in elf.c
Type: refactor
Change-Id: Ia47644ca5fb7c848c0de7e7c3ed2c69e8d5cb80f
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra')
-rw-r--r-- | src/vppinfra/elf.c | 2 |
1 files changed, 0 insertions, 2 deletions
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; } |