From 7929d58d92f3a5624b0e61b842ba5ce8debb3550 Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 19 Jun 2023 22:42:25 +0200 Subject: elf: fix type mismatch from bfore --- elf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'elf.c') diff --git a/elf.c b/elf.c index 668a599..49c9d83 100644 --- a/elf.c +++ b/elf.c @@ -368,9 +368,9 @@ putreloc(struct wbuf *out, const struct reloc *rel, bool userela) static int symcmp(const void *L, const void *R) { - const struct elf64sym *l = L, *r = R; - int tmp, lbind = l->info >> 4, rbind = r->info >> 4; - if ((tmp = lbind - rbind)) return tmp; /* locals prio */ + const struct sym *l = L, *r = R; + int tmp; + if ((tmp = l->bind - r->bind)) return tmp; /* locals prio */ if ((tmp = r->shndx - l->shndx)) return tmp; /* section prio (real sections > SHN_UND) */ return l->name - r->name; } -- cgit v1.2.3