Lines Matching refs:shdr
369 Elf32_Shdr *shdr = elf32_getshdr (scn); in elf_compress() local
370 if (shdr == NULL) in elf_compress()
373 sh_flags = shdr->sh_flags; in elf_compress()
374 sh_type = shdr->sh_type; in elf_compress()
375 sh_addralign = shdr->sh_addralign; in elf_compress()
379 Elf64_Shdr *shdr = elf64_getshdr (scn); in elf_compress() local
380 if (shdr == NULL) in elf_compress()
383 sh_flags = shdr->sh_flags; in elf_compress()
384 sh_type = shdr->sh_type; in elf_compress()
385 sh_addralign = shdr->sh_addralign; in elf_compress()
461 Elf32_Shdr *shdr = elf32_getshdr (scn); in elf_compress() local
462 shdr->sh_size = new_size; in elf_compress()
463 shdr->sh_addralign = __libelf_type_align (ELFCLASS32, ELF_T_CHDR); in elf_compress()
464 shdr->sh_flags |= SHF_COMPRESSED; in elf_compress()
468 Elf64_Shdr *shdr = elf64_getshdr (scn); in elf_compress() local
469 shdr->sh_size = new_size; in elf_compress()
470 shdr->sh_addralign = __libelf_type_align (ELFCLASS64, ELF_T_CHDR); in elf_compress()
471 shdr->sh_flags |= SHF_COMPRESSED; in elf_compress()
512 Elf32_Shdr *shdr = elf32_getshdr (scn); in elf_compress() local
513 shdr->sh_size = scn->zdata_size; in elf_compress()
514 shdr->sh_addralign = scn->zdata_align; in elf_compress()
515 shdr->sh_flags &= ~SHF_COMPRESSED; in elf_compress()
519 Elf64_Shdr *shdr = elf64_getshdr (scn); in elf_compress() local
520 shdr->sh_size = scn->zdata_size; in elf_compress()
521 shdr->sh_addralign = scn->zdata_align; in elf_compress()
522 shdr->sh_flags &= ~SHF_COMPRESSED; in elf_compress()