Searched refs:sh_flags (Results 1 - 25 of 34) sorted by relevance

12

/linux-master/kernel/module/
H A Ddebug_kmemleak.c22 if (!(info->sechdrs[i].sh_flags & SHF_ALLOC) ||
23 !(info->sechdrs[i].sh_flags & SHF_WRITE) ||
24 (info->sechdrs[i].sh_flags & SHF_EXECINSTR))
H A Dkallsyms.c54 if (sechdrs[sym->st_shndx].sh_flags & SHF_EXECINSTR)
56 if (sechdrs[sym->st_shndx].sh_flags & SHF_ALLOC &&
58 if (!(sechdrs[sym->st_shndx].sh_flags & SHF_WRITE))
60 else if (sechdrs[sym->st_shndx].sh_flags & ARCH_SHF_SMALL)
66 if (sechdrs[sym->st_shndx].sh_flags & ARCH_SHF_SMALL)
96 if (!(sec->sh_flags & SHF_ALLOC)
98 || !(sec->sh_flags & SHF_EXECINSTR)
123 symsect->sh_flags |= SHF_ALLOC;
150 strsect->sh_flags |= SHF_ALLOC;
H A Dstrict_rwx.c91 if ((sechdrs[i].sh_flags & shf_wx) == shf_wx) {
H A Dmain.c189 if ((shdr->sh_flags & SHF_ALLOC)
1452 if (!(info->sechdrs[infosec].sh_flags & SHF_ALLOC))
1455 if (info->sechdrs[i].sh_flags & SHF_RELA_LIVEPATCH)
1542 if ((s->sh_flags & masks[m][0]) != masks[m][0]
1543 || (s->sh_flags & masks[m][1])
1800 if (shdr->sh_flags & SHF_ALLOC) {
1865 if (!(shdr->sh_flags & SHF_ALLOC)) {
2002 info->sechdrs[info->index.vers].sh_flags &= ~(unsigned long)SHF_ALLOC;
2003 info->sechdrs[info->index.info].sh_flags &= ~(unsigned long)SHF_ALLOC;
2266 if (!(shdr->sh_flags
[all...]
/linux-master/arch/loongarch/kernel/
H A Dmodule-sections.c147 if (!(dst_sec->sh_flags & SHF_EXECINSTR))
155 got_sec->sh_flags = SHF_ALLOC;
163 plt_sec->sh_flags = SHF_EXECINSTR | SHF_ALLOC;
171 plt_idx_sec->sh_flags = SHF_ALLOC;
179 tramp->sh_flags = SHF_EXECINSTR | SHF_ALLOC;
/linux-master/arch/riscv/kernel/
H A Dmodule-sections.c132 if (!(dst_sec->sh_flags & SHF_EXECINSTR))
139 mod->arch.plt.shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC;
146 mod->arch.got.shdr->sh_flags = SHF_ALLOC;
153 mod->arch.got_plt.shdr->sh_flags = SHF_ALLOC;
/linux-master/tools/perf/util/
H A Dgenelf.c199 shdr->sh_flags = SHF_ALLOC;
233 shdr->sh_flags = SHF_ALLOC;
335 shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC;
381 shdr->sh_flags = 0;
417 shdr->sh_flags = 0;
460 shdr->sh_flags = 0;
503 shdr->sh_flags = SHF_ALLOC;
H A Dgenelf_debug.c541 shdr->sh_flags = 0;
575 shdr->sh_flags = 0;
609 shdr->sh_flags = 0;
/linux-master/tools/objtool/include/objtool/
H A Dwarn.h21 bool is_text = (sec->sh.sh_flags & SHF_EXECINSTR);
/linux-master/arch/arm64/kernel/
H A Dmodule-plts.c323 if (!(dstsec->sh_flags & SHF_EXECINSTR))
345 pltsec->sh_flags = SHF_EXECINSTR | SHF_ALLOC;
353 pltsec->sh_flags = SHF_EXECINSTR | SHF_ALLOC;
361 tramp->sh_flags = SHF_EXECINSTR | SHF_ALLOC;
/linux-master/arch/arm/kernel/
H A Dmodule-plts.c248 if (!(dstsec->sh_flags & SHF_EXECINSTR))
263 mod->arch.core.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC;
271 mod->arch.init.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC;
/linux-master/arch/arm64/kernel/pi/
H A Drelacheck.c88 flags = swab_elfxword(shdr[info].sh_flags);
/linux-master/arch/s390/tools/
H A Drelocs.c204 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags);
307 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC))
/linux-master/drivers/remoteproc/
H A Dremoteproc_elf_helpers.h80 ELF_GEN_FIELD_GET_SET(shdr, sh_flags, u32)
/linux-master/include/uapi/linux/
H A Delf.h290 /* sh_flags */
311 Elf32_Word sh_flags; member in struct:elf32_shdr
324 Elf64_Xword sh_flags; /* Miscellaneous section attributes */ member in struct:elf64_shdr
/linux-master/scripts/
H A Drecordmcount.h310 mcsec.sh_flags = _w(SHF_ALLOC);
325 mcsec.sh_flags = 0;
568 !(_w(txthdr->sh_flags) & SHF_EXECINSTR))
/linux-master/arch/mips/boot/tools/
H A Drelocs.c281 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags);
485 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC))
/linux-master/arch/mips/tools/
H A Dloongson3-llsc-check.c290 if (!(sh->sh_flags & SHF_EXECINSTR))
/linux-master/arch/mips/kernel/
H A Dvpe.c206 if ((s->sh_flags & masks[m][0]) != masks[m][0]
207 || (s->sh_flags & masks[m][1])
653 if (!(sechdrs[i].sh_flags & SHF_ALLOC))
683 if (!(sechdrs[info].sh_flags & SHF_ALLOC))
/linux-master/arch/x86/tools/
H A Drelocs.c457 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags);
653 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) {
746 if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) {
/linux-master/kernel/
H A Dkexec_file.c843 if (!(sechdrs[i].sh_flags & SHF_ALLOC))
918 if (!(sechdrs[i].sh_flags & SHF_ALLOC))
941 if (sechdrs[i].sh_flags & SHF_EXECINSTR &&
994 if (!(section->sh_flags & SHF_ALLOC))
/linux-master/tools/lib/bpf/
H A Dlinker.c371 sec->shdr->sh_flags = SHF_STRINGS;
409 sec->shdr->sh_flags = 0;
754 if (sec->shdr->sh_flags & SHF_EXECINSTR) {
922 if (link_sec->shdr->sh_flags & SHF_EXECINSTR) {
1033 shdr->sh_flags = src_sec->shdr->sh_flags;
1077 if (dst->shdr->sh_flags != src->shdr->sh_flags) {
2094 if (src_linked_sec->shdr->sh_flags & SHF_EXECINSTR) {
2660 shdr->sh_flags
[all...]
/linux-master/arch/mips/boot/
H A Delf2ecoff.c210 s->sh_flags = swab32(s->sh_flags);
/linux-master/tools/bpf/resolve_btfids/
H A Dmain.c309 if (!(sh->sh_flags & SHF_COMPRESSED))
401 (int) sh.sh_link, (unsigned long) sh.sh_flags,
/linux-master/tools/objtool/
H A Delf.c893 if (!(insn_sec->sh.sh_flags & SHF_EXECINSTR)) {
923 if (sym->sec && (sec->sh.sh_flags & SHF_EXECINSTR)) {
1145 sec->sh.sh_flags = SHF_ALLOC;
1193 rsec->sh.sh_flags = SHF_INFO_LINK;

Completed in 268 milliseconds

12