git: f935fd713d15 - stable/14 - kldxref: Fix MIPS Elf_Rel addend computation

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Thu, 18 Jan 2024 22:25:54 UTC
The branch stable/14 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=f935fd713d15ea6a8e1572a95876e359a7531fb1

commit f935fd713d15ea6a8e1572a95876e359a7531fb1
Author:     Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2023-12-14 20:17:19 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2024-01-18 21:30:38 +0000

    kldxref: Fix MIPS Elf_Rel addend computation
    
    Fixes:  0299afdff145 ("kldxref: Make use of libelf to be a portable cross tool")
    (cherry picked from commit ae7925cafeee1136bd1761b2ce75614ee47b0039)
---
 usr.sbin/kldxref/ef_mips.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/usr.sbin/kldxref/ef_mips.c b/usr.sbin/kldxref/ef_mips.c
index edc99a7d2505..60fd35390d7e 100644
--- a/usr.sbin/kldxref/ef_mips.c
+++ b/usr.sbin/kldxref/ef_mips.c
@@ -88,7 +88,6 @@ ef_mips_reloc(struct elf_file *ef, const void *reldata, Elf_Type reltype,
 			else
 				addend = be32dec(where);
 		}
-		addend = *where;
 	}
 
 	switch (rtype) {