#include "llvm/Object/ELFObjectFile.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ObjectYAML/yaml2obj.h"
#include "llvm/Support/BlockFrequency.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/YAMLTraits.h"
#include "llvm/Testing/Support/Error.h"
#include "gtest/gtest.h"
#include "llvm/Support/thread.h"
#include "llvm/TargetParser/Host.h"
usingnamespacellvm;
usingnamespacellvm::object;
namespace {
struct DataForTest { … };
void checkFormatAndArch(const DataForTest &D, StringRef Fmt,
Triple::ArchType Arch) { … }
std::array<DataForTest, 4> generateData(uint16_t Machine) { … }
}
TEST(ELFObjectFileTest, MachineTestForNoneOrUnused) { … }
TEST(ELFObjectFileTest, MachineTestForVE) { … }
TEST(ELFObjectFileTest, MachineTestForX86_64) { … }
TEST(ELFObjectFileTest, MachineTestFor386) { … }
TEST(ELFObjectFileTest, MachineTestForMIPS) { … }
TEST(ELFObjectFileTest, MachineTestForAMDGPU) { … }
TEST(ELFObjectFileTest, MachineTestForIAMCU) { … }
TEST(ELFObjectFileTest, MachineTestForAARCH64) { … }
TEST(ELFObjectFileTest, MachineTestForPPC64) { … }
TEST(ELFObjectFileTest, MachineTestForPPC) { … }
TEST(ELFObjectFileTest, MachineTestForRISCV) { … }
TEST(ELFObjectFileTest, MachineTestForARM) { … }
TEST(ELFObjectFileTest, MachineTestForS390) { … }
TEST(ELFObjectFileTest, MachineTestForSPARCV9) { … }
TEST(ELFObjectFileTest, MachineTestForSPARC) { … }
TEST(ELFObjectFileTest, MachineTestForSPARC32PLUS) { … }
TEST(ELFObjectFileTest, MachineTestForBPF) { … }
TEST(ELFObjectFileTest, MachineTestForAVR) { … }
TEST(ELFObjectFileTest, MachineTestForHEXAGON) { … }
TEST(ELFObjectFileTest, MachineTestForLANAI) { … }
TEST(ELFObjectFileTest, MachineTestForMSP430) { … }
TEST(ELFObjectFileTest, MachineTestForLoongArch) { … }
TEST(ELFObjectFileTest, MachineTestForCSKY) { … }
TEST(ELFObjectFileTest, MachineTestForXtensa) { … }
TEST(ELFObjectFileTest, CheckOSAndTriple) { … }
TEST(ELFObjectFileTest, RelativeRelocationTypeTest) { … }
template <class ELFT>
static Expected<ELFObjectFile<ELFT>> toBinary(SmallVectorImpl<char> &Storage,
StringRef Yaml) { … }
TEST(ELFObjectFileTest, InvalidSymtabShndxTest) { … }
TEST(ELFObjectFileTest, InvalidLoadSegmentsOrderTest) { … }
TEST(ELFObjectFileTest, InvalidSymbolTest) { … }
TEST(ELFObjectFileTest, InvalidDecodeBBAddrMap) { … }
TEST(ELFObjectFileTest, ReadBBAddrMap) { … }
TEST(ELFObjectFileTest, InvalidDecodePGOAnalysisMap) { … }
TEST(ELFObjectFileTest, ReadPGOAnalysisMap) { … }
TEST(ELFObjectFileTest, ExecutableWithRelocs) { … }
TEST(ELFObjectFileTest, GetSectionAndRelocations) { … }
TEST(ELFObjectFileTest, ELFSymbolRefLess) { … }