Lines Matching refs:chdr
271 GElf_Chdr chdr; in __libelf_decompress_elf() local
272 if (gelf_getchdr (scn, &chdr) == NULL) in __libelf_decompress_elf()
275 if (chdr.ch_type != ELFCOMPRESS_ZLIB) in __libelf_decompress_elf()
281 if (! powerof2 (chdr.ch_addralign)) in __libelf_decompress_elf()
302 void *buf_out = __libelf_decompress (buf_in, size_in, chdr.ch_size); in __libelf_decompress_elf()
303 *size_out = chdr.ch_size; in __libelf_decompress_elf()
304 *addralign = chdr.ch_addralign; in __libelf_decompress_elf()
428 Elf32_Chdr chdr; in elf_compress() local
429 chdr.ch_type = ELFCOMPRESS_ZLIB; in elf_compress()
430 chdr.ch_size = orig_size; in elf_compress()
431 chdr.ch_addralign = orig_addralign; in elf_compress()
434 CONVERT (chdr.ch_type); in elf_compress()
435 CONVERT (chdr.ch_size); in elf_compress()
436 CONVERT (chdr.ch_addralign); in elf_compress()
438 memcpy (out_buf, &chdr, sizeof (Elf32_Chdr)); in elf_compress()
442 Elf64_Chdr chdr; in elf_compress() local
443 chdr.ch_type = ELFCOMPRESS_ZLIB; in elf_compress()
444 chdr.ch_reserved = 0; in elf_compress()
445 chdr.ch_size = orig_size; in elf_compress()
446 chdr.ch_addralign = sh_addralign; in elf_compress()
449 CONVERT (chdr.ch_type); in elf_compress()
450 CONVERT (chdr.ch_reserved); in elf_compress()
451 CONVERT (chdr.ch_size); in elf_compress()
452 CONVERT (chdr.ch_addralign); in elf_compress()
454 memcpy (out_buf, &chdr, sizeof (Elf64_Chdr)); in elf_compress()