/linux-master/arch/loongarch/kernel/ |
H A D | module-sections.c | 143 if (sechdrs[i].sh_type != SHT_RELA) 154 got_sec->sh_type = SHT_NOBITS; 162 plt_sec->sh_type = SHT_NOBITS; 170 plt_idx_sec->sh_type = SHT_NOBITS; 178 tramp->sh_type = SHT_NOBITS;
|
/linux-master/arch/mips/vdso/ |
H A D | genvdso.h | 31 switch (swap_uint32(shdr->sh_type)) { 50 shdr->sh_type = swap_uint32(SHT_MIPS_ABIFLAGS); 76 if (swap_uint32(shdr->sh_type) == SHT_SYMTAB)
|
/linux-master/tools/lib/bpf/ |
H A D | elf.c | 61 /* Return next ELF section of sh_type after scn, or first of that type if scn is NULL. */ 62 static Elf_Scn *elf_find_next_scn_by_type(Elf *elf, int sh_type, Elf_Scn *scn) argument 69 if (sh.sh_type == sh_type) 98 int sh_type, int st_type) 111 scn = elf_find_next_scn_by_type(elf, sh_type, NULL); 133 if (sh_type != SHT_DYNSYM) 223 static bool symbol_match(struct elf_sym_iter *iter, int sh_type, struct elf_sym *sym, argument 247 if (sh_type == SHT_DYNSYM) { 96 elf_sym_iter_new(struct elf_sym_iter *iter, Elf *elf, const char *binary_path, int sh_type, int st_type) argument
|
H A D | linker.c | 370 sec->shdr->sh_type = SHT_STRTAB; 408 sec->shdr->sh_type = SHT_SYMTAB; 485 if (shdr->sh_type == SHT_STRTAB) 489 if (shdr->sh_type == SHT_LLVM_ADDRSIG) 493 if (shdr->sh_type == SHT_PROGBITS && shdr->sh_size == 0 && 642 switch (shdr->sh_type) { 745 switch (sec->shdr->sh_type) { 774 sec->sec_idx, sec->sec_name, (size_t)sec->shdr->sh_type, obj->filename); 799 if (link_sec->shdr->sh_type != SHT_STRTAB) { 895 if (link_sec->shdr->sh_type ! [all...] |
/linux-master/arch/riscv/kernel/ |
H A D | module-sections.c | 128 if (sechdrs[i].sh_type != SHT_RELA) 138 mod->arch.plt.shdr->sh_type = SHT_NOBITS; 145 mod->arch.got.shdr->sh_type = SHT_NOBITS; 152 mod->arch.got_plt.shdr->sh_type = SHT_NOBITS;
|
/linux-master/tools/perf/util/ |
H A D | genelf.c | 197 shdr->sh_type = SHT_PROGBITS; 231 shdr->sh_type = SHT_PROGBITS; 333 shdr->sh_type = SHT_PROGBITS; 380 shdr->sh_type = SHT_STRTAB; 416 shdr->sh_type = SHT_SYMTAB; 459 shdr->sh_type = SHT_STRTAB; 501 shdr->sh_type = SHT_NOTE;
|
H A D | genelf_debug.c | 539 shdr->sh_type = SHT_PROGBITS; 573 shdr->sh_type = SHT_PROGBITS; 607 shdr->sh_type = SHT_PROGBITS;
|
/linux-master/arch/arm64/kernel/ |
H A D | module-plts.c | 301 else if (sechdrs[i].sh_type == SHT_SYMTAB) 319 if (sechdrs[i].sh_type != SHT_RELA) 344 pltsec->sh_type = SHT_NOBITS; 352 pltsec->sh_type = SHT_NOBITS; 360 tramp->sh_type = SHT_NOBITS;
|
/linux-master/arch/arm/kernel/ |
H A D | module-plts.c | 226 else if (s->sh_type == SHT_SYMTAB) 244 if (s->sh_type != SHT_REL) 262 mod->arch.core.plt->sh_type = SHT_NOBITS; 270 mod->arch.init.plt->sh_type = SHT_NOBITS;
|
/linux-master/arch/alpha/kernel/ |
H A D | module.c | 79 if (s->sh_type == SHT_SYMTAB) 106 got->sh_type = SHT_NOBITS; 111 if (s->sh_type == SHT_RELA) {
|
/linux-master/scripts/ |
H A D | recordmcount.h | 247 if (relhdr->sh_type == SHT_SYMTAB) 249 else if (relhdr->sh_type == SHT_SYMTAB_SHNDX) 309 mcsec.sh_type = w(SHT_PROGBITS); 322 mcsec.sh_type = (sizeof(Elf_Rela) == rel_entsize) 558 /* .sh_info depends on .sh_type == SHT_REL[,A] */ 567 if (w(txthdr->sh_type) != SHT_PROGBITS || 578 if (w(relhdr->sh_type) != SHT_REL && w(relhdr->sh_type) != SHT_RELA)
|
H A D | sorttable.h | 317 if ((r(&s->sh_type) == SHT_REL || 318 r(&s->sh_type) == SHT_RELA) && 323 if (r(&s->sh_type) == SHT_SYMTAB_SHNDX)
|
/linux-master/arch/mips/boot/tools/ |
H A D | relocs.c | 280 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); 301 if (sec->shdr.sh_type != SHT_STRTAB) 325 if (sec->shdr.sh_type != SHT_SYMTAB) 369 if (sec->shdr.sh_type != SHT_REL_TYPE) 415 if (sec->shdr.sh_type != SHT_REL_TYPE) 480 if (sec->shdr.sh_type != SHT_REL_TYPE)
|
/linux-master/arch/x86/tools/ |
H A D | relocs.c | 294 if (sec->shdr.sh_type != SHT_SYMTAB) 456 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); 476 if (sec->shdr.sh_type != SHT_STRTAB) { 504 switch (sec->shdr.sh_type) { 563 if (sec->shdr.sh_type != SHT_REL_TYPE) { 609 if (sec->shdr.sh_type != SHT_SYMTAB) { 648 if (sec->shdr.sh_type != SHT_REL_TYPE) { 661 if (sec_applies->shdr.sh_type == SHT_NOTE) { 741 if (sec->shdr.sh_type ! [all...] |
/linux-master/arch/s390/tools/ |
H A D | relocs.c | 203 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); 226 if (sec->shdr.sh_type != SHT_REL_TYPE) 303 if (sec->shdr.sh_type != SHT_REL_TYPE)
|
/linux-master/arch/arm64/kernel/pi/ |
H A D | relacheck.c | 83 if (swab_elfword(shdr[i].sh_type) != SHT_RELA)
|
/linux-master/arch/sh/kernel/ |
H A D | hw_breakpoint.c | 135 int arch_bp_generic_fields(int sh_len, int sh_type, argument 157 switch (sh_type) {
|
/linux-master/kernel/ |
H A D | kexec_file.c | 847 if (sechdrs[i].sh_type != SHT_NOBITS) { 922 if (sechdrs[i].sh_type == SHT_NOBITS) { 977 if (relsec->sh_type != SHT_RELA && 978 relsec->sh_type != SHT_REL) 1009 if (relsec->sh_type == SHT_RELA) 1012 else if (relsec->sh_type == SHT_REL) 1088 if (sechdrs[i].sh_type != SHT_SYMTAB) 1163 if (sec->sh_type == SHT_NOBITS) {
|
/linux-master/kernel/module/ |
H A D | kallsyms.c | 57 sechdrs[sym->st_shndx].sh_type != SHT_NOBITS) { 65 if (sechdrs[sym->st_shndx].sh_type == SHT_NOBITS) { 235 if (!sect_empty(sechdr) && sechdr->sh_type == SHT_NOTE &&
|
/linux-master/arch/sparc/vdso/ |
H A D | vdso2c.h | 68 if (GET_BE(&sh->sh_type) == SHT_SYMTAB)
|
/linux-master/drivers/remoteproc/ |
H A D | remoteproc_elf_helpers.h | 79 ELF_GEN_FIELD_GET_SET(shdr, sh_type, u32)
|
/linux-master/tools/testing/selftests/sgx/ |
H A D | load.c | 150 if (sections[i].sh_type == SHT_SYMTAB) { 158 if (sections[i].sh_type == SHT_STRTAB) {
|
/linux-master/include/uapi/linux/ |
H A D | elf.h | 271 /* sh_type */ 310 Elf32_Word sh_type; member in struct:elf32_shdr 323 Elf64_Word sh_type; /* Type of section */ member in struct:elf64_shdr
|
/linux-master/tools/objtool/include/objtool/ |
H A D | elf.h | 179 return sec->sh.sh_type == SHT_RELA || sec->sh.sh_type == SHT_REL;
|
/linux-master/arch/mips/kernel/ |
H A D | vpe.c | 620 if ((sechdrs[i].sh_type != SHT_NOBITS) && 633 if (sechdrs[i].sh_type == SHT_SYMTAB) { 658 if (sechdrs[i].sh_type != SHT_NOBITS) 686 if (sechdrs[i].sh_type == SHT_REL) 689 else if (sechdrs[i].sh_type == SHT_RELA) 713 if (sechdrs[i].sh_type == SHT_SYMTAB) {
|