Home
last modified time | relevance | path

Searched refs:scn1 (Results 1 – 6 of 6) sorted by relevance

/third_party/elfutils/tests/
Dasm-tst3.c58 AsmScn_t *scn1; in main() local
84 scn1 = asm_newscn (ctx, ".data", SHT_PROGBITS, SHF_ALLOC | SHF_WRITE); in main()
85 scn2 = asm_newsubscn (scn1, 1); in main()
86 if (scn1 == NULL || scn2 == NULL) in main()
94 if (asm_align (scn1, 16) != 0) in main()
101 if (asm_newsym (scn1, "one", 4, STT_OBJECT, STB_GLOBAL) == NULL) in main()
106 if (asm_addstrz (scn1, "one", 4) != 0) in main()
121 if (asm_newsym (scn1, "two", 4, STT_OBJECT, STB_LOCAL) == NULL) in main()
126 if (asm_addstrz (scn1, "two", 4) != 0) in main()
Dasm-tst2.c66 AsmScn_t *scn1; in main() local
92 scn1 = asm_newscn (ctx, ".data", SHT_PROGBITS, SHF_ALLOC | SHF_WRITE); in main()
93 scn2 = asm_newsubscn (scn1, 1); in main()
94 if (scn1 == NULL || scn2 == NULL) in main()
102 if (asm_align (scn1, 16) != 0) in main()
109 if (asm_addstrz (scn1, "one", 4) != 0) in main()
119 if (asm_addstrz (scn1, "two", 4) != 0) in main()
Dasm-tst1.c67 AsmScn_t *scn1; in main() local
93 scn1 = asm_newscn (ctx, ".text", SHT_PROGBITS, SHF_ALLOC | SHF_EXECINSTR); in main()
95 if (scn1 == NULL || scn2 == NULL) in main()
103 if (asm_align (scn1, 32) != 0) in main()
Dfillfile.c366 Elf_Scn *scn1 = NULL; in check_elf() local
382 scn1 = scn; in check_elf()
392 if (scn1 == NULL) in check_elf()
397 data = elf_getdata (scn1, NULL); in check_elf()
/third_party/elfutils/src/
Delfcmp.c255 Elf_Scn *scn1 = NULL; in main() local
266 scn1 = elf_nextscn (elf1, scn1); in main()
267 shdr1 = gelf_getshdr (scn1, &shdr1_mem); in main()
271 while (scn1 != NULL && shdr1 != NULL in main()
287 if (scn1 == NULL || scn2 == NULL || shdr1 == NULL || shdr2 == NULL) in main()
307 fname1, fname2, elf_ndxscn (scn1), elf_ndxscn (scn2)); in main()
330 fname1, fname2, elf_ndxscn (scn1), sname1); in main()
334 Elf_Data *data1 = elf_getdata (scn1, NULL); in main()
338 elf_ndxscn (scn1), fname1, elf_errmsg (-1)); in main()
353 elf_ndxscn (scn1), fname1); in main()
[all …]
/third_party/elfutils/libelf/
Delf32_updatenull.c174 struct Elf_Scn *scn1 = NULL; in __elfw2() local
195 scn1 = &list->data[1]; in __elfw2()
197 scn1 = &list->next->data[0]; in __elfw2()
201 if (scn1 != NULL && scn1->shdr.ELFW(e,LIBELFBITS) == NULL) in __elfw2()
202 (void) __elfw2(LIBELFBITS,getshdr_wrlock) (scn1); in __elfw2()