Lines Matching refs:shdr
205 #define for_each_rela(shdr, var) \ argument
206 for (var = elf_ptr(Elf64_Rela, elf64toh(shdr->sh_offset)); \
207 var < elf_ptr(Elf64_Rela, elf64toh(shdr->sh_offset) + elf64toh(shdr->sh_size)); var++)
216 static inline const char *section_name(Elf64_Shdr *shdr) in section_name() argument
218 return elf.sh_string + elf32toh(shdr->sh_name); in section_name()
222 static inline const char *section_begin(Elf64_Shdr *shdr) in section_begin() argument
224 return elf_ptr(char, elf64toh(shdr->sh_offset)); in section_begin()
428 Elf64_Shdr *shdr; in emit_all_relocs() local
430 for_each_section(shdr) { in emit_all_relocs()
431 switch (elf32toh(shdr->sh_type)) { in emit_all_relocs()
434 section_name(shdr)); in emit_all_relocs()
436 emit_rela_section(shdr); in emit_all_relocs()