Home
last modified time | relevance | path

Searched refs:elf_offset (Results 1 – 24 of 24) sorted by relevance

/aosp12/system/unwinding/libunwindstack/tests/
H A DElfCacheTest.cpp140 EXPECT_EQ(0U, info0_1.elf_offset()); in VerifyWithinSameMap()
141 EXPECT_EQ(0U, info0_2.elf_offset()); in VerifyWithinSameMap()
154 EXPECT_EQ(0U, info100_1.elf_offset()); in VerifyWithinSameMap()
155 EXPECT_EQ(0U, info100_2.elf_offset()); in VerifyWithinSameMap()
168 EXPECT_EQ(0U, info200_1.elf_offset()); in VerifyWithinSameMap()
169 EXPECT_EQ(0U, info200_2.elf_offset()); in VerifyWithinSameMap()
182 EXPECT_EQ(0x300U, info300_1.elf_offset()); in VerifyWithinSameMap()
183 EXPECT_EQ(0x300U, info300_2.elf_offset()); in VerifyWithinSameMap()
230 EXPECT_EQ(0x300U, info300_1.elf_offset()); in VerifyWithinSameMapNeverReadAtZero()
231 EXPECT_EQ(0x300U, info300_2.elf_offset()); in VerifyWithinSameMapNeverReadAtZero()
[all …]
H A DMapInfoCreateMemoryTest.cpp116 ASSERT_EQ(0x100U, info.elf_offset()); in TEST_F()
144 ASSERT_EQ(0x100U, info.elf_offset()); in TEST_F()
154 ASSERT_EQ(0x100U, info.elf_offset()); in TEST_F()
164 ASSERT_EQ(0x100U, info.elf_offset()); in TEST_F()
174 ASSERT_EQ(0x100U, info.elf_offset()); in TEST_F()
186 ASSERT_EQ(0U, info.elf_offset()); in TEST_F()
211 ASSERT_EQ(0U, info.elf_offset()); in TEST_F()
229 ASSERT_EQ(0U, info.elf_offset()); in TEST_F()
387 EXPECT_EQ(0UL, map_info->elf_offset()); in TEST_F()
422 EXPECT_EQ(0U, map_info->elf_offset()); in TEST_F()
[all …]
H A DElfInterfaceTest.cpp1046 uint64_t elf_offset = 0x2000; in InitSectionHeadersOffsetsEhFrameSectionBias() local
1049 ehdr.e_shoff = elf_offset; in InitSectionHeadersOffsetsEhFrameSectionBias()
1055 elf_offset += ehdr.e_shentsize; in InitSectionHeadersOffsetsEhFrameSectionBias()
1066 elf_offset += ehdr.e_shentsize; in InitSectionHeadersOffsetsEhFrameSectionBias()
1075 elf_offset += ehdr.e_shentsize; in InitSectionHeadersOffsetsEhFrameSectionBias()
1138 uint64_t elf_offset = 0x2000; in InitSectionHeadersOffsetsEhFrameHdrSectionBias() local
1141 ehdr.e_shoff = elf_offset; in InitSectionHeadersOffsetsEhFrameHdrSectionBias()
1147 elf_offset += ehdr.e_shentsize; in InitSectionHeadersOffsetsEhFrameHdrSectionBias()
1158 elf_offset += ehdr.e_shentsize; in InitSectionHeadersOffsetsEhFrameHdrSectionBias()
1229 uint64_t elf_offset = 0x2000; in InitSectionHeadersOffsetsDebugFrameSectionBias() local
[all …]
H A DMapInfoTest.cpp41 EXPECT_EQ(0UL, map_info.elf_offset()); in TEST()
57 EXPECT_EQ(0UL, map_info.elf_offset()); in TEST()
H A DMapInfoGetElfTest.cpp200 ASSERT_EQ(0x100U, info.elf_offset()); in TEST_F()
229 ASSERT_EQ(0U, info.elf_offset()); in TEST_F()
262 ASSERT_EQ(0U, info.elf_offset()); in TEST_F()
290 ASSERT_EQ(0U, info.elf_offset()); in TEST_F()
H A DMapsTest.cpp42 info->set_elf_offset(element->elf_offset()); in VerifyLine()
60 ASSERT_EQ(0U, info->elf_offset()); in TEST()
80 ASSERT_EQ(0U, info->elf_offset()); in TEST()
/aosp12/bionic/linker/
H A Dlinker_mapped_file_fragment.cpp48 bool MappedFileFragment::Map(int fd, off64_t base_offset, size_t elf_offset, size_t size) { in Map() argument
50 CHECK(safe_add(&offset, base_offset, elf_offset)); in Map()
H A Dlinker_mapped_file_fragment.h40 bool Map(int fd, off64_t base_offset, size_t elf_offset, size_t size);
/aosp12/system/unwinding/libunwindstack/
H A DRegsX86_64.cpp135 bool RegsX86_64::StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) { in StepIfSignalHandler() argument
140 if (!elf_memory->ReadFully(elf_offset, &data, sizeof(data)) || data != 0x0f0000000fc0c748) { in StepIfSignalHandler()
145 if (!elf_memory->ReadFully(elf_offset + 8, &data2, sizeof(data2)) || data2 != 0x05) { in StepIfSignalHandler()
H A DElf.cpp105 return pc - map_info->start() + load_bias_ + map_info->elf_offset(); in GetRelPc()
379 if (info->offset() == 0 || info->elf_offset() != 0) { in CacheAdd()
387 (*cache_)[key] = std::make_pair(info->elf(), info->elf_offset() != 0); in CacheAdd()
392 if (info->name().empty() || info->offset() == 0 || info->elf_offset() == 0) { in CacheAfterCreateMemory()
H A DRegsArm.cpp99 bool RegsArm::StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) { in StepIfSignalHandler() argument
104 if (!elf_memory->ReadFully(elf_offset, &data, sizeof(data))) { in StepIfSignalHandler()
H A DRegsMips64.cpp122 bool RegsMips64::StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) { in StepIfSignalHandler() argument
127 if (!elf_memory->Read(elf_offset, &data, sizeof(data))) { in StepIfSignalHandler()
H A DRegsMips.cpp124 bool RegsMips::StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) { in StepIfSignalHandler() argument
130 if (!elf_memory->ReadFully(elf_offset, &data, sizeof(data))) { in StepIfSignalHandler()
H A DRegsX86.cpp115 bool RegsX86::StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) { in StepIfSignalHandler() argument
120 if (!elf_memory->ReadFully(elf_offset, &data, sizeof(data))) { in StepIfSignalHandler()
H A DRegsArm64.cpp154 bool RegsArm64::StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) { in StepIfSignalHandler() argument
159 if (!elf_memory->ReadFully(elf_offset, &data, sizeof(data))) { in StepIfSignalHandler()
H A DMapInfo.cpp210 ranges->Insert(new MemoryRange(process_memory, start(), end() - start(), elf_offset())); in CreateMemory()
/aosp12/system/unwinding/libunwindstack/include/unwindstack/
H A DRegsMips64.h41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
H A DRegsArm.h41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
H A DRegsMips.h41 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
H A DRegsX86.h42 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
H A DRegsX86_64.h42 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
H A DRegsArm64.h42 bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) override;
H A DRegs.h74 virtual bool StepIfSignalHandler(uint64_t elf_offset, Elf* elf, Memory* process_memory) = 0;
H A DMapInfo.h106 inline uint64_t elf_offset() { return GetElfFields().elf_offset_; } in elf_offset() function