From 9cdcf6158caa43c62341a678d6522267d8676015 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Fri, 20 Sep 2024 12:22:06 +0200 Subject: [PATCH] elf: fix typo in Symbol.isAbs --- src/Elf/Symbol.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Elf/Symbol.zig b/src/Elf/Symbol.zig index 9e8107e5..c1dd0d68 100644 --- a/src/Elf/Symbol.zig +++ b/src/Elf/Symbol.zig @@ -32,7 +32,7 @@ extra: u32 = 0, pub fn isAbs(symbol: Symbol, elf_file: *Elf) bool { const file = symbol.getFile(elf_file).?; if (file == .shared) return symbol.getElfSym(elf_file).st_shndx == elf.SHN_ABS; - return !symbol.flags.import and symbol.getAtom(elf_file) == null and symbol.getMergeSubsection(elf_file) == null and symbol.getShndx(elf_file) == 0 and file != .internal; + return !symbol.flags.import and symbol.getAtom(elf_file) == null and symbol.getMergeSubsection(elf_file) == null and symbol.getShndx(elf_file) == null and file != .internal; } pub fn isLocal(symbol: Symbol, elf_file: *Elf) bool {