87 panic(
"Unrecognized arch %d.", arch);
106 return "linux_arm_OABI";
110 panic(
"Unrecognized operating system %d.", op_sys);
119ObjectFileFormatList &
122 static ObjectFileFormatList formats;
130 object_file_formats().emplace_back(
this);
138 for (
auto &
format: object_file_formats()) {
ObjectFile(ImageFileDataPtr ifd)
#define panic(...)
This implements a cprintf based panic() function.
Bitfield< 31, 29 > format
bool archIs64Bit(const loader::Arch arch)
Determine whether the loader::Arch is 64-bit or 32-bit.
const char * archToString(Arch arch)
ObjectFile * createObjectFile(const std::string &fname, bool raw)
const char * opSysToString(OpSys op_sys)
std::shared_ptr< ImageFileData > ImageFileDataPtr
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.