• Home
  • Raw
  • Download

Lines Matching refs:shdr

164 	Elf_Shdr *shdr;  in jit_add_eh_frame_info()  local
189 shdr = elf_getshdr(scn); in jit_add_eh_frame_info()
190 if (!shdr) { in jit_add_eh_frame_info()
195 shdr->sh_name = 104; in jit_add_eh_frame_info()
196 shdr->sh_type = SHT_PROGBITS; in jit_add_eh_frame_info()
197 shdr->sh_addr = base_offset; in jit_add_eh_frame_info()
198 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info()
199 shdr->sh_entsize = 0; in jit_add_eh_frame_info()
223 shdr = elf_getshdr(scn); in jit_add_eh_frame_info()
224 if (!shdr) { in jit_add_eh_frame_info()
229 shdr->sh_name = 90; in jit_add_eh_frame_info()
230 shdr->sh_type = SHT_PROGBITS; in jit_add_eh_frame_info()
231 shdr->sh_addr = base_offset + unwinding_table_size; in jit_add_eh_frame_info()
232 shdr->sh_flags = SHF_ALLOC; in jit_add_eh_frame_info()
233 shdr->sh_entsize = 0; in jit_add_eh_frame_info()
255 Elf_Shdr *shdr; in jit_write_elf() local
311 shdr = elf_getshdr(scn); in jit_write_elf()
312 if (!shdr) { in jit_write_elf()
317 shdr->sh_name = 1; in jit_write_elf()
318 shdr->sh_type = SHT_PROGBITS; in jit_write_elf()
319 shdr->sh_addr = GEN_ELF_TEXT_OFFSET; in jit_write_elf()
320 shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC; in jit_write_elf()
321 shdr->sh_entsize = 0; in jit_write_elf()
357 shdr = elf_getshdr(scn); in jit_write_elf()
358 if (!shdr) { in jit_write_elf()
363 shdr->sh_name = 7; /* offset of '.shstrtab' in shd_string_table */ in jit_write_elf()
364 shdr->sh_type = SHT_STRTAB; in jit_write_elf()
365 shdr->sh_flags = 0; in jit_write_elf()
366 shdr->sh_entsize = 0; in jit_write_elf()
393 shdr = elf_getshdr(scn); in jit_write_elf()
394 if (!shdr) { in jit_write_elf()
399 shdr->sh_name = 17; /* offset of '.symtab' in shd_string_table */ in jit_write_elf()
400 shdr->sh_type = SHT_SYMTAB; in jit_write_elf()
401 shdr->sh_flags = 0; in jit_write_elf()
402 shdr->sh_entsize = sizeof(Elf_Sym); in jit_write_elf()
403 shdr->sh_link = unwinding ? 6 : 4; /* index of .strtab section */ in jit_write_elf()
436 shdr = elf_getshdr(scn); in jit_write_elf()
437 if (!shdr) { in jit_write_elf()
442 shdr->sh_name = 25; /* offset in shd_string_table */ in jit_write_elf()
443 shdr->sh_type = SHT_STRTAB; in jit_write_elf()
444 shdr->sh_flags = 0; in jit_write_elf()
445 shdr->sh_entsize = 0; in jit_write_elf()
478 shdr = elf_getshdr(scn); in jit_write_elf()
479 if (!shdr) { in jit_write_elf()
484 shdr->sh_name = 33; /* offset in shd_string_table */ in jit_write_elf()
485 shdr->sh_type = SHT_NOTE; in jit_write_elf()
486 shdr->sh_addr = 0x0; in jit_write_elf()
487 shdr->sh_flags = SHF_ALLOC; in jit_write_elf()
488 shdr->sh_size = sizeof(bnote); in jit_write_elf()
489 shdr->sh_entsize = 0; in jit_write_elf()