Lines Matching refs:SHF_ALLOC
1386 || (relshdr->sh_flags & SHF_ALLOC) != 0)
1453 || (relshdr->sh_flags & SHF_ALLOC) != 0)
2343 if ((shdr->sh_flags & SHF_ALLOC) == 0)
3637 { ".bss", 5, SHT_NOBITS, exact, SHF_ALLOC | SHF_WRITE, 0 },
3639 { ".data", 6, SHT_PROGBITS, exact, SHF_ALLOC | SHF_WRITE, 0 },
3640 { ".data1", 7, SHT_PROGBITS, exact, SHF_ALLOC | SHF_WRITE, 0 },
3644 { ".dynamic", 9, SHT_DYNAMIC, atleast, SHF_ALLOC, SHF_WRITE },
3645 { ".dynstr", 8, SHT_STRTAB, exact, SHF_ALLOC, 0 },
3646 { ".dynsym", 8, SHT_DYNSYM, exact, SHF_ALLOC, 0 },
3647 { ".fini", 6, SHT_PROGBITS, exact, SHF_ALLOC | SHF_EXECINSTR, 0 },
3648 { ".fini_array", 12, SHT_FINI_ARRAY, exact, SHF_ALLOC | SHF_WRITE, 0 },
3650 { ".hash", 6, SHT_HASH, exact, SHF_ALLOC, 0 },
3651 { ".init", 6, SHT_PROGBITS, exact, SHF_ALLOC | SHF_EXECINSTR, 0 },
3652 { ".init_array", 12, SHT_INIT_ARRAY, exact, SHF_ALLOC | SHF_WRITE, 0 },
3653 { ".interp", 8, SHT_PROGBITS, atleast, 0, SHF_ALLOC }, // XXX more tests?
3655 { ".note", 6, SHT_NOTE, atleast, 0, SHF_ALLOC },
3657 { ".preinit_array", 15, SHT_PREINIT_ARRAY, exact, SHF_ALLOC | SHF_WRITE, 0 },
3658 { ".rela", 5, SHT_RELA, atleast, 0, SHF_ALLOC | SHF_INFO_LINK }, // XXX more tests
3659 { ".rel", 4, SHT_REL, atleast, 0, SHF_ALLOC | SHF_INFO_LINK }, // XXX more tests
3660 { ".rodata", 8, SHT_PROGBITS, atleast, SHF_ALLOC, SHF_MERGE | SHF_STRINGS },
3661 { ".rodata1", 9, SHT_PROGBITS, atleast, SHF_ALLOC, SHF_MERGE | SHF_STRINGS },
3663 { ".strtab", 8, SHT_STRTAB, atleast, 0, SHF_ALLOC }, // XXX more tests
3664 { ".symtab", 8, SHT_SYMTAB, atleast, 0, SHF_ALLOC }, // XXX more tests
3665 { ".symtab_shndx", 14, SHT_SYMTAB_SHNDX, atleast, 0, SHF_ALLOC }, // XXX more tests
3666 { ".tbss", 6, SHT_NOBITS, exact, SHF_ALLOC | SHF_WRITE | SHF_TLS, 0 },
3667 { ".tdata", 7, SHT_PROGBITS, exact, SHF_ALLOC | SHF_WRITE | SHF_TLS, 0 },
3668 { ".tdata1", 8, SHT_PROGBITS, exact, SHF_ALLOC | SHF_WRITE | SHF_TLS, 0 },
3669 { ".text", 6, SHT_PROGBITS, exact, SHF_ALLOC | SHF_EXECINSTR, 0 },
3672 { ".gnu.version", 13, SHT_GNU_versym, exact, SHF_ALLOC, 0 },
3673 { ".gnu.version_d", 15, SHT_GNU_verdef, exact, SHF_ALLOC, 0 },
3674 { ".gnu.version_r", 15, SHT_GNU_verneed, exact, SHF_ALLOC, 0 },
3852 if ((shdr->sh_flags & SHF_ALLOC) != 0
3855 section [%2zu] '%s' has SHF_ALLOC flag set but there is no loadable segment\n"),
3857 else if ((shdr->sh_flags & SHF_ALLOC) == 0
3860 section [%2zu] '%s' has SHF_ALLOC flag not set but there are loadable segments\n"),
3871 /* These sections must have the SHF_ALLOC flag set iff
3884 if ((shdr->sh_flags & SHF_ALLOC) != 0
3887 section [%2zu] '%s' has SHF_ALLOC flag set but there is no loadable segment\n"),
3889 else if ((shdr->sh_flags & SHF_ALLOC) == 0
3892 section [%2zu] '%s' has SHF_ALLOC flag not set but there are loadable segments\n"),
3929 #define ALL_SH_FLAGS (SHF_WRITE | SHF_ALLOC | SHF_EXECINSTR | SHF_MERGE \
3972 if (shdr->sh_flags & SHF_ALLOC)
4048 if (ehdr->e_type != ET_REL && (shdr->sh_flags & SHF_ALLOC) != 0
4707 else if (shdr != NULL && (shdr->sh_flags & SHF_ALLOC) == 0)