Lines Matching refs:chdr
260 GElf_Chdr chdr; in __libelf_decompress_elf() local
261 if (gelf_getchdr (scn, &chdr) == NULL) in __libelf_decompress_elf()
264 if (chdr.ch_type != ELFCOMPRESS_ZLIB) in __libelf_decompress_elf()
270 if (! powerof2 (chdr.ch_addralign)) in __libelf_decompress_elf()
291 void *buf_out = __libelf_decompress (buf_in, size_in, chdr.ch_size); in __libelf_decompress_elf()
292 *size_out = chdr.ch_size; in __libelf_decompress_elf()
293 *addralign = chdr.ch_addralign; in __libelf_decompress_elf()
408 Elf32_Chdr chdr; in elf_compress() local
409 chdr.ch_type = ELFCOMPRESS_ZLIB; in elf_compress()
410 chdr.ch_size = orig_size; in elf_compress()
411 chdr.ch_addralign = orig_addralign; in elf_compress()
414 CONVERT (chdr.ch_type); in elf_compress()
415 CONVERT (chdr.ch_size); in elf_compress()
416 CONVERT (chdr.ch_addralign); in elf_compress()
418 memcpy (out_buf, &chdr, sizeof (Elf32_Chdr)); in elf_compress()
422 Elf64_Chdr chdr; in elf_compress() local
423 chdr.ch_type = ELFCOMPRESS_ZLIB; in elf_compress()
424 chdr.ch_reserved = 0; in elf_compress()
425 chdr.ch_size = orig_size; in elf_compress()
426 chdr.ch_addralign = sh_addralign; in elf_compress()
429 CONVERT (chdr.ch_type); in elf_compress()
430 CONVERT (chdr.ch_reserved); in elf_compress()
431 CONVERT (chdr.ch_size); in elf_compress()
432 CONVERT (chdr.ch_addralign); in elf_compress()
434 memcpy (out_buf, &chdr, sizeof (Elf64_Chdr)); in elf_compress()