38 #ifndef _ELF_INTERNAL_H
39 #define _ELF_INTERNAL_H
262 #define ELF_SECTION_SIZE(sec_hdr, segment) \
263 (((sec_hdr->sh_flags & SHF_TLS) == 0 || sec_hdr->sh_type != SHT_NOBITS || segment->p_type == PT_TLS) ? sec_hdr->sh_size : 0)
268 #define ELF_IS_SECTION_IN_SEGMENT(sec_hdr, segment) \
269 (((((sec_hdr->sh_flags & SHF_TLS) != 0) && (segment->p_type == PT_TLS || segment->p_type == PT_LOAD)) || ((sec_hdr->sh_flags & SHF_TLS) == 0 && segment->p_type != PT_TLS))
271 && (sec_hdr->sh_type == SHT_NOBITS || ((bfd_vma)sec_hdr->sh_offset >= segment->p_offset && (sec_hdr->sh_offset + ELF_SECTION_SIZE(sec_hdr, segment) <= segment->p_offset + segment->p_filesz))) \
272 && ((sec_hdr->sh_flags & SHF_ALLOC) == 0 || (sec_hdr->sh_addr >= segment->p_vaddr && (sec_hdr->sh_addr + ELF_SECTION_SIZE(sec_hdr, segment) <= segment->p_vaddr + segment->p_memsz))))
275 #define ELF_IS_SECTION_IN_SEGMENT_FILE(sec_hdr, segment) \
276 (sec_hdr->sh_size > 0 && ELF_IS_SECTION_IN_SEGMENT(sec_hdr, segment))
279 #define ELF_IS_SECTION_IN_SEGMENT_MEMORY(sec_hdr, segment) \
280 (ELF_SECTION_SIZE(sec_hdr, segment) > 0 && ELF_IS_SECTION_IN_SEGMENT(sec_hdr, segment))
struct elf_internal_versym Elf_Internal_Versym
struct elf_internal_rela Elf_Internal_Rela
struct elf_internal_verdef Elf_Internal_Verdef
struct elf_internal_vernaux Elf_Internal_Vernaux
struct elf_internal_dyn Elf_Internal_Dyn
struct elf_internal_verdaux Elf_Internal_Verdaux
struct elf_internal_verneed Elf_Internal_Verneed
struct elf_internal_shdr Elf_Internal_Shdr
struct elf_internal_note Elf_Internal_Note
struct elf_internal_ehdr Elf_Internal_Ehdr
BFD_HOST_U_64_BIT bfd_size_type
BFD_HOST_U_64_BIT bfd_vma
unsigned short int si_flags
unsigned short int si_boundto
union elf_internal_dyn::@82 d_un
unsigned char e_ident[EI_NIDENT]
unsigned int sh_addralign
struct elf_internal_verdaux * vda_nextptr
const char * vda_nodename
struct elf_internal_verdef * vd_nextdef
unsigned int vd_exp_refno
struct elf_internal_verdaux * vd_auxptr
unsigned short vd_version
struct elf_internal_vernaux * vna_nextptr
const char * vna_nodename
unsigned short vn_version
struct elf_internal_vernaux * vn_auxptr
struct elf_internal_verneed * vn_nextref
struct elf_segment_map * next
unsigned int includes_filehdr
unsigned int p_paddr_valid
unsigned int includes_phdrs
unsigned int p_align_valid
unsigned int p_flags_valid