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 72
72
73
73
# # Format-specific properties:
74
74
header (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
76
85
endianness (oh:: ELFHandle ) = elf_internal_endianness (oh. ei)
77
86
is64bit (oh:: ELFHandle ) = elf_internal_is64bit (oh. ei)
78
87
isrelocatable (oh:: ELFHandle ) = header (oh). e_type == ET_REL
You can’t perform that action at this time.
0 commit comments