Home
last modified time | relevance | path

Searched refs:note_offset (Results 1 – 3 of 3) sorted by relevance

/system/core/libunwindstack/tests/
DMapInfoGetBuildIDTest.cpp149 size_t note_offset = sizeof(note_header); in InitElfData() local
150 memcpy(&note_section[note_offset], "GNU", note_header.n_namesz); in InitElfData()
151 note_offset += note_header.n_namesz; in InitElfData()
152 memcpy(&note_section[note_offset], "ELF_BUILDID", note_header.n_descsz); in InitElfData()
DElfInterfaceTest.cpp1539 size_t note_offset = sizeof(note_header); in BuildID() local
1541 memcpy(&note_section[note_offset], "GNU", sizeof("GNU")); in BuildID()
1542 note_offset += sizeof("GNU"); in BuildID()
1544 memcpy(&note_section[note_offset], "BUILDID", 7); in BuildID()
1599 size_t note_offset = sizeof(note_header); in BuildIDTwoNotes() local
1600 memcpy(&note_section[note_offset], "WRONG", sizeof("WRONG")); in BuildIDTwoNotes()
1601 note_offset += 8; in BuildIDTwoNotes()
1603 memcpy(&note_section[note_offset], "BUILDID", 7); in BuildIDTwoNotes()
1604 note_offset += 8; in BuildIDTwoNotes()
1609 memcpy(&note_section[note_offset], &note_header, sizeof(note_header)); in BuildIDTwoNotes()
[all …]
/system/core/libunwindstack/
DElfInterface.cpp625 uint64_t note_offset; in ReadBuildIDFromMemory() local
627 if (!GetBuildIDInfo<EhdrType, ShdrType>(memory, &note_offset, &note_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()