Searched refs:note_header (Results 1 – 2 of 2) sorted by relevance
146 Elf32_Nhdr note_header = {}; in InitElfData() local147 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(¬e_section, ¬e_header, sizeof(note_header)); in InitElfData()151 size_t note_offset = sizeof(note_header); in InitElfData()152 memcpy(¬e_section[note_offset], "GNU", note_header.n_namesz); in InitElfData()153 note_offset += note_header.n_namesz; in InitElfData()154 memcpy(¬e_section[note_offset], "ELF_BUILDID", note_header.n_descsz); in InitElfData()
1542 Nhdr note_header = {}; in BuildID() local1543 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(¬e_section, ¬e_header, sizeof(note_header)); in BuildID()1547 size_t note_offset = sizeof(note_header); in BuildID()1602 Nhdr note_header = {}; in BuildIDTwoNotes() local1603 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 …]