File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 7272
7373# # Format-specific properties:
7474header (oh:: ELFHandle ) = oh. header
75- Platform (oh:: ELFHandle ) = strip_libc_tag (Platform (elf_machine_to_arch (oh. header. e_machine), " linux" ))
75+ function Platform (oh:: ELFHandle )
76+ arch = elf_machine_to_arch (oh. header. e_machine)
77+ if oh. ei. osabi == ELFOSABI_LINUX || oh. ei. osabi == ELFOSABI_NONE
78+ return strip_libc_tag (Platform (arch, " linux" ))
79+ elseif oh. ei. osabi == ELFOSABI_FREEBSD
80+ return Platform (arch, " freebsd" )
81+ else
82+ throw (ArgumentError (" Unknown ELF OSABI $(oh. ei. osabi) " ))
83+ end
84+ end
7685endianness (oh:: ELFHandle ) = elf_internal_endianness (oh. ei)
7786is64bit (oh:: ELFHandle ) = elf_internal_is64bit (oh. ei)
7887isrelocatable (oh:: ELFHandle ) = header (oh). e_type == ET_REL
You can’t perform that action at this time.
0 commit comments