Skip to content

Commit

Permalink
elf: fix typo in Symbol.isAbs
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon committed Sep 20, 2024
1 parent 0af7370 commit 9cdcf61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Elf/Symbol.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9cdcf61

Please sign in to comment.