Lines Matching refs:sec_hdr
294 #define ELF_TBSS_SPECIAL(sec_hdr, segment) \
295 (((sec_hdr)->sh_flags & SHF_TLS) != 0 \
296 && (sec_hdr)->sh_type == SHT_NOBITS \
299 #define ELF_SECTION_SIZE(sec_hdr, segment) \
300 (ELF_TBSS_SPECIAL(sec_hdr, segment) ? 0 : (sec_hdr)->sh_size)
302 /* Decide if the section SEC_HDR is in SEGMENT. If CHECK_VMA, then
308 #define ELF_SECTION_IN_SEGMENT_1(sec_hdr, segment, check_vma, strict) \
311 ((((sec_hdr)->sh_flags & SHF_TLS) != 0) \
317 || (((sec_hdr)->sh_flags & SHF_TLS) == 0 \
322 && ((sec_hdr)->sh_type == SHT_NOBITS \
323 || ((bfd_vma) (sec_hdr)->sh_offset >= (segment)->p_offset \
325 || ((sec_hdr)->sh_offset - (segment)->p_offset \
327 && (((sec_hdr)->sh_offset - (segment)->p_offset \
328 + ELF_SECTION_SIZE(sec_hdr, segment)) \
332 || ((sec_hdr)->sh_flags & SHF_ALLOC) == 0 \
333 || ((sec_hdr)->sh_addr >= (segment)->p_vaddr \
335 || ((sec_hdr)->sh_addr - (segment)->p_vaddr \
337 && (((sec_hdr)->sh_addr - (segment)->p_vaddr \
338 + ELF_SECTION_SIZE(sec_hdr, segment)) \
342 || (sec_hdr)->sh_size != 0 \
344 || (((sec_hdr)->sh_type == SHT_NOBITS \
345 || ((bfd_vma) (sec_hdr)->sh_offset > (segment)->p_offset \
346 && ((sec_hdr)->sh_offset - (segment)->p_offset \
348 && (((sec_hdr)->sh_flags & SHF_ALLOC) == 0 \
349 || ((sec_hdr)->sh_addr > (segment)->p_vaddr \
350 && ((sec_hdr)->sh_addr - (segment)->p_vaddr \
353 #define ELF_SECTION_IN_SEGMENT(sec_hdr, segment) \
354 (ELF_SECTION_IN_SEGMENT_1 (sec_hdr, segment, 1, 0))
356 #define ELF_SECTION_IN_SEGMENT_STRICT(sec_hdr, segment) \
357 (ELF_SECTION_IN_SEGMENT_1 (sec_hdr, segment, 1, 1))