Skip to content

Commit

Permalink
Fix "Cleanup - old Goblin ELF parser (solana-labs#551)"
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso committed Jan 3, 2025
1 parent ace7ec4 commit 2123052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ impl<C: ContextObject> Executable<C> {
if header.e_ident.ei_osabi != ELFOSABI_NONE {
return Err(ElfError::WrongAbi);
}
if header.e_machine != EM_BPF && header.e_machine != EM_SBPF {
if header.e_machine != EM_BPF {
return Err(ElfError::WrongMachine);
}
if header.e_type != ET_DYN {
Expand Down

0 comments on commit 2123052

Please sign in to comment.