mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +00:00
LibELF+LibSymbolication: Remove i686 support
This commit is contained in:
parent
2f7443c900
commit
a4c87fac56
7 changed files with 1 additions and 94 deletions
|
@ -23,13 +23,8 @@ bool validate_elf_header(ElfW(Ehdr) const& elf_header, size_t file_size, bool ve
|
|||
return false;
|
||||
}
|
||||
|
||||
#if ARCH(I386)
|
||||
auto expected_class = ELFCLASS32;
|
||||
auto expected_bitness = 32;
|
||||
#else
|
||||
auto expected_class = ELFCLASS64;
|
||||
auto expected_bitness = 64;
|
||||
#endif
|
||||
if (expected_class != elf_header.e_ident[EI_CLASS]) {
|
||||
if (verbose)
|
||||
dbgln("File is not a {}-bit ELF file.", expected_bitness);
|
||||
|
@ -61,13 +56,8 @@ bool validate_elf_header(ElfW(Ehdr) const& elf_header, size_t file_size, bool ve
|
|||
return false;
|
||||
}
|
||||
|
||||
#if ARCH(I386)
|
||||
auto expected_machine = EM_386;
|
||||
auto expected_machine_name = "i386";
|
||||
#else
|
||||
auto expected_machine = EM_X86_64;
|
||||
auto expected_machine_name = "x86-64";
|
||||
#endif
|
||||
|
||||
if (expected_machine != elf_header.e_machine) {
|
||||
if (verbose)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue