git: ae7925cafeee - main - kldxref: Fix MIPS Elf_Rel addend computation

From: Jessica Clarke <jrtc27_at_FreeBSD.org>
Date: Thu, 14 Dec 2023 20:18:15 UTC
The branch main has been updated by jrtc27:

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

commit ae7925cafeee1136bd1761b2ce75614ee47b0039
Author:     Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2023-12-14 20:17:19 +0000
Commit:     Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2023-12-14 20:17:19 +0000

    kldxref: Fix MIPS Elf_Rel addend computation
    
    Fixes:  0299afdff145 ("kldxref: Make use of libelf to be a portable cross tool")
---
 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) {