Lines Matching refs:ef
40 #define EXPECT_ELF_FILE_ADDRESS(ef, expected_value, symbol_name, build_map) \ argument
42 void* addr = reinterpret_cast<void*>((ef)->FindSymbolAddress(SHT_DYNSYM, \
50 EXPECT_EQ(expected_value, (ef)->FindDynamicSymbolAddress(symbol_name)); \
67 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), in TEST_F() local
72 CHECK(ef.get() != nullptr) << error_msg; in TEST_F()
73 EXPECT_ELF_FILE_ADDRESS(ef, dl_oatdata, "oatdata", false); in TEST_F()
74 EXPECT_ELF_FILE_ADDRESS(ef, dl_oatexec, "oatexec", false); in TEST_F()
75 EXPECT_ELF_FILE_ADDRESS(ef, dl_oatlastword, "oatlastword", false); in TEST_F()
79 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), in TEST_F() local
84 CHECK(ef.get() != nullptr) << error_msg; in TEST_F()
85 EXPECT_ELF_FILE_ADDRESS(ef, dl_oatdata, "oatdata", true); in TEST_F()
86 EXPECT_ELF_FILE_ADDRESS(ef, dl_oatexec, "oatexec", true); in TEST_F()
87 EXPECT_ELF_FILE_ADDRESS(ef, dl_oatlastword, "oatlastword", true); in TEST_F()
92 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), in TEST_F() local
98 CHECK(ef.get() != nullptr) << error_msg; in TEST_F()
99 CHECK(ef->Load(file.get(), false, /*low_4gb*/false, &error_msg)) << error_msg; in TEST_F()
101 reinterpret_cast<uintptr_t>(ef->FindDynamicSymbolAddress("oatdata"))); in TEST_F()
103 reinterpret_cast<uintptr_t>(ef->FindDynamicSymbolAddress("oatexec"))); in TEST_F()
105 reinterpret_cast<uintptr_t>(ef->FindDynamicSymbolAddress("oatlastword"))); in TEST_F()
118 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), in TEST_F() local
123 CHECK(ef.get() != nullptr) << error_msg; in TEST_F()
124 EXPECT_TRUE(ef->HasSection(".note.gnu.build-id")); in TEST_F()