Searched refs:note_offset (Results 1 – 3 of 3) sorted by relevance
/system/core/libunwindstack/tests/ |
D | MapInfoGetBuildIDTest.cpp | 149 size_t note_offset = sizeof(note_header); in InitElfData() local 150 memcpy(¬e_section[note_offset], "GNU", note_header.n_namesz); in InitElfData() 151 note_offset += note_header.n_namesz; in InitElfData() 152 memcpy(¬e_section[note_offset], "ELF_BUILDID", note_header.n_descsz); in InitElfData()
|
D | ElfInterfaceTest.cpp | 1539 size_t note_offset = sizeof(note_header); in BuildID() local 1541 memcpy(¬e_section[note_offset], "GNU", sizeof("GNU")); in BuildID() 1542 note_offset += sizeof("GNU"); in BuildID() 1544 memcpy(¬e_section[note_offset], "BUILDID", 7); in BuildID() 1599 size_t note_offset = sizeof(note_header); in BuildIDTwoNotes() local 1600 memcpy(¬e_section[note_offset], "WRONG", sizeof("WRONG")); in BuildIDTwoNotes() 1601 note_offset += 8; in BuildIDTwoNotes() 1603 memcpy(¬e_section[note_offset], "BUILDID", 7); in BuildIDTwoNotes() 1604 note_offset += 8; in BuildIDTwoNotes() 1609 memcpy(¬e_section[note_offset], ¬e_header, sizeof(note_header)); in BuildIDTwoNotes() [all …]
|
/system/core/libunwindstack/ |
D | ElfInterface.cpp | 625 uint64_t note_offset; in ReadBuildIDFromMemory() local 627 if (!GetBuildIDInfo<EhdrType, ShdrType>(memory, ¬e_offset, ¬e_size)) { in ReadBuildIDFromMemory() 633 if (__builtin_add_overflow(note_offset, note_size, &tmp)) { in ReadBuildIDFromMemory() 643 if (!memory->ReadFully(note_offset + offset, &hdr, sizeof(hdr))) { in ReadBuildIDFromMemory() 653 if (!memory->ReadFully(note_offset + offset, &(name[0]), hdr.n_namesz)) { in ReadBuildIDFromMemory() 668 if (memory->ReadFully(note_offset + offset, &build_id[0], hdr.n_descsz)) { in ReadBuildIDFromMemory()
|