Lines Matching refs:ef
34 #define EXPECT_ELF_FILE_ADDRESS(ef, expected_value, symbol_name, build_map) \ argument
36 void* addr = reinterpret_cast<void*>(ef->FindSymbolAddress(SHT_DYNSYM, \
45 EXPECT_EQ(expected_value, ef->FindDynamicSymbolAddress(symbol_name)); \
91 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), false, false, &error_msg)); in TEST_F() local
92 CHECK(ef.get() != nullptr) << error_msg; in TEST_F()
93 EXPECT_ELF_FILE_ADDRESS(ef, dl_oatdata, "oatdata", false); in TEST_F()
94 EXPECT_ELF_FILE_ADDRESS(ef, dl_oatexec, "oatexec", false); in TEST_F()
95 EXPECT_ELF_FILE_ADDRESS(ef, dl_oatlastword, "oatlastword", false); in TEST_F()
99 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), false, false, &error_msg)); in TEST_F() local
100 CHECK(ef.get() != nullptr) << error_msg; in TEST_F()
101 EXPECT_ELF_FILE_ADDRESS(ef, dl_oatdata, "oatdata", true); in TEST_F()
102 EXPECT_ELF_FILE_ADDRESS(ef, dl_oatexec, "oatexec", true); in TEST_F()
103 EXPECT_ELF_FILE_ADDRESS(ef, dl_oatlastword, "oatlastword", true); in TEST_F()
107 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), false, true, &error_msg)); in TEST_F() local
108 CHECK(ef.get() != nullptr) << error_msg; in TEST_F()
109 CHECK(ef->Load(false, &error_msg)) << error_msg; in TEST_F()
110 EXPECT_EQ(dl_oatdata, ef->FindDynamicSymbolAddress("oatdata")); in TEST_F()
111 EXPECT_EQ(dl_oatexec, ef->FindDynamicSymbolAddress("oatexec")); in TEST_F()
112 EXPECT_EQ(dl_oatlastword, ef->FindDynamicSymbolAddress("oatlastword")); in TEST_F()