From 9a3ae013c8ac645c73f1851a3bfabbb02518d4d1 Mon Sep 17 00:00:00 2001 From: Malcolm Parsons Date: Thu, 25 Apr 2024 11:13:22 +0100 Subject: [PATCH] Fix loclistoffset_eq Not all DWARF loclists were being updated because loclistoffset_eq performed an assignment instead of checking for equality. --- src/dwarf2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dwarf2.c b/src/dwarf2.c index b9588b1..fe96c00 100644 --- a/src/dwarf2.c +++ b/src/dwarf2.c @@ -1120,7 +1120,7 @@ loclistoffset_eq (const void *p, const void *q) GElf_Addr *offset1 = (GElf_Addr *)p; GElf_Addr *offset2 = (GElf_Addr *)q; - return *offset1 = *offset2; + return *offset1 == *offset2; } static void