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