Home
last modified time | relevance | path

Searched refs:note_header (Results 1 – 2 of 2) sorted by relevance

/system/unwinding/libunwindstack/tests/
DMapInfoGetBuildIDTest.cpp146 Elf32_Nhdr note_header = {}; in InitElfData() local
147 note_header.n_namesz = sizeof("GNU"); in InitElfData()
148 note_header.n_descsz = sizeof("ELF_BUILDID") - 1; in InitElfData()
149 note_header.n_type = NT_GNU_BUILD_ID; in InitElfData()
150 memcpy(&note_section, &note_header, sizeof(note_header)); in InitElfData()
151 size_t note_offset = sizeof(note_header); in InitElfData()
152 memcpy(&note_section[note_offset], "GNU", note_header.n_namesz); in InitElfData()
153 note_offset += note_header.n_namesz; in InitElfData()
154 memcpy(&note_section[note_offset], "ELF_BUILDID", note_header.n_descsz); in InitElfData()
DElfInterfaceTest.cpp1542 Nhdr note_header = {}; in BuildID() local
1543 note_header.n_namesz = 4; // "GNU" in BuildID()
1544 note_header.n_descsz = 7; // "BUILDID" in BuildID()
1545 note_header.n_type = NT_GNU_BUILD_ID; in BuildID()
1546 memcpy(&note_section, &note_header, sizeof(note_header)); in BuildID()
1547 size_t note_offset = sizeof(note_header); in BuildID()
1602 Nhdr note_header = {}; in BuildIDTwoNotes() local
1603 note_header.n_namesz = 8; // "WRONG" aligned to 4 in BuildIDTwoNotes()
1604 note_header.n_descsz = 7; // "BUILDID" in BuildIDTwoNotes()
1605 note_header.n_type = NT_GNU_BUILD_ID; in BuildIDTwoNotes()
[all …]