Lines Matching refs:note

76   auto note = GnuPropertySection(&phdrs[0], std::size(phdrs), 0, SONAME)
84 static void test_bti_not_supported(GnuPropertySection& note __unused) { in test_bti_not_supported()
86 ASSERT_FALSE(note.IsBTICompatible()); in test_bti_not_supported()
91 static void test_bti_supported(GnuPropertySection& note __unused) { in test_bti_supported()
92 ASSERT_TRUE(note.IsBTICompatible()); in test_bti_supported()
100 note = reinterpret_cast<ElfW(NhdrGNUProperty)*>(&section[0]); in GnuPropertySectionBuilder()
101 note->nhdr.n_namesz = 4; in GnuPropertySectionBuilder()
102 note->nhdr.n_descsz = 0; in GnuPropertySectionBuilder()
103 note->nhdr.n_type = NT_GNU_PROPERTY_TYPE_0; in GnuPropertySectionBuilder()
104 memcpy(note->n_name, "GNU", 4); in GnuPropertySectionBuilder()
129 ElfW(NhdrGNUProperty)* data() const { return note; } in ElfW()
133 dump_member("n_namesz", note->nhdr.n_namesz); in dump()
134 dump_member("n_descsz", note->nhdr.n_descsz); in dump()
135 dump_member("n_type ", note->nhdr.n_type); in dump()
136 dump_member("n_name ", note->n_name); in dump()
140 const uintptr_t offset = note->nhdr.n_descsz + 16; in dump()
157 void corrupt_n_descsz(ElfW(Word) n_descsz) { note->nhdr.n_descsz = n_descsz; } in corrupt_n_descsz()
165 ElfW(Word) offset() const { return note->nhdr.n_descsz + 16; } in offset()
169 note->nhdr.n_descsz += static_cast<ElfW(Word)>(value); in step()
175 ElfW(NhdrGNUProperty)* note;
182 GnuPropertySection note; in TEST() local
183 test_bti_not_supported(note); in TEST()
190 auto note = GnuPropertySection(nullptr, 0, 0, SONAME); in TEST() local
191 test_bti_not_supported(note); in TEST()
204 auto note = GnuPropertySection(&phdrs[0], std::size(phdrs), 0, SONAME); in TEST() local
205 test_bti_not_supported(note); in TEST()
222 auto note = GnuPropertySection(&phdrs[0], std::size(phdrs), 0, SONAME); in TEST() local
223 test_bti_not_supported(note); in TEST()
242 auto note = GnuPropertySection(&phdrs[0], std::size(phdrs), 0, SONAME); in TEST() local
243 test_bti_not_supported(note); in TEST()
259 test_bti_not_supported(note); in TEST()
272 test_bti_not_supported(note); in TEST()
283 test_bti_not_supported(note); in TEST()
296 test_bti_not_supported(note); in TEST()
304 test_bti_not_supported(note); in TEST()
315 test_bti_not_supported(note); in TEST()
326 test_bti_not_supported(note); in TEST()
343 test_bti_supported(note); in TEST()
357 test_bti_not_supported(note); in TEST()
380 test_bti_supported(note); in TEST()
412 test_bti_not_supported(note); in TEST()
429 test_bti_not_supported(note); in TEST()