Home
last modified time | relevance | path

Searched refs:sh_addralign (Results 1 – 25 of 31) sorted by relevance

12

/openbmc/openbmc/poky/meta/recipes-devtools/elfutils/files/
H A D0003-fixheadercheck.patch7 sh_align = 1 and sh_addralign is 0. In the case of a zero size section
31 - if (unlikely (! powerof2 (shdr->sh_addralign))
32 - || unlikely ((shdr->sh_addralign ?: 1) < sh_align))
33 + if (shdr->sh_size && (unlikely (! powerof2 (shdr->sh_addralign))
34 + || unlikely ((shdr->sh_addralign ?: 1) < sh_align)))
/openbmc/linux/arch/loongarch/kernel/
H A Dmodule-sections.c156 got_sec->sh_addralign = L1_CACHE_BYTES; in module_frob_arch_sections()
164 plt_sec->sh_addralign = L1_CACHE_BYTES; in module_frob_arch_sections()
172 plt_idx_sec->sh_addralign = L1_CACHE_BYTES; in module_frob_arch_sections()
180 tramp->sh_addralign = __alignof__(struct plt_entry); in module_frob_arch_sections()
/openbmc/linux/arch/arm64/kernel/
H A Dmodule-plts.c233 dstsec->sh_addralign = max(dstsec->sh_addralign, in count_plts()
347 pltsec->sh_addralign = L1_CACHE_BYTES; in module_frob_arch_sections()
355 pltsec->sh_addralign = L1_CACHE_BYTES; in module_frob_arch_sections()
363 tramp->sh_addralign = __alignof__(struct plt_entry); in module_frob_arch_sections()
/openbmc/linux/arch/riscv/kernel/
H A Dmodule-sections.c140 mod->arch.plt.shdr->sh_addralign = L1_CACHE_BYTES; in module_frob_arch_sections()
147 mod->arch.got.shdr->sh_addralign = L1_CACHE_BYTES; in module_frob_arch_sections()
154 mod->arch.got_plt.shdr->sh_addralign = L1_CACHE_BYTES; in module_frob_arch_sections()
/openbmc/linux/include/uapi/linux/
H A Delf.h317 Elf32_Word sh_addralign; member
330 Elf64_Xword sh_addralign; /* Section alignment */ member
/openbmc/linux/arch/arm/kernel/
H A Dmodule-plts.c264 mod->arch.core.plt->sh_addralign = L1_CACHE_BYTES; in module_frob_arch_sections()
272 mod->arch.init.plt->sh_addralign = L1_CACHE_BYTES; in module_frob_arch_sections()
/openbmc/linux/arch/powerpc/kernel/
H A Dmodule_64.c419 if (sechdrs[i].sh_addralign < 8) in module_frob_arch_sections()
420 sechdrs[i].sh_addralign = 8; in module_frob_arch_sections()
425 if (sechdrs[i].sh_addralign < 8) in module_frob_arch_sections()
426 sechdrs[i].sh_addralign = 8; in module_frob_arch_sections()
/openbmc/linux/tools/bpf/resolve_btfids/
H A Dmain.c312 if (sh->sh_addralign == expected) in compressed_section_fix()
316 sh->sh_addralign, expected); in compressed_section_fix()
318 sh->sh_addralign = expected; in compressed_section_fix()
/openbmc/linux/tools/lib/bpf/
H A Dlinker.c375 sec->shdr->sh_addralign = 1; in init_output_elf()
418 sec->shdr->sh_addralign = 8; in init_output_elf()
718 if (sec->shdr->sh_addralign && !is_pow_of_2(sec->shdr->sh_addralign)) in linker_sanity_check_elf()
720 if (sec->shdr->sh_addralign != sec->data->d_align) in linker_sanity_check_elf()
1018 shdr->sh_addralign = src_sec->shdr->sh_addralign; in init_sec()
1100 dst_align = dst->shdr->sh_addralign; in extend_sec()
1101 src_align = src->shdr->sh_addralign; in extend_sec()
1140 dst->shdr->sh_addralign = dst_align; in extend_sec()
2648 shdr->sh_addralign = align; in emit_elf_data_sec()
/openbmc/linux/arch/ia64/kernel/
H A Dmodule.c468 mod->arch.core_plt->sh_addralign = 16; in module_frob_arch_sections()
472 mod->arch.init_plt->sh_addralign = 16; in module_frob_arch_sections()
476 mod->arch.got->sh_addralign = 8; in module_frob_arch_sections()
480 mod->arch.opd->sh_addralign = 8; in module_frob_arch_sections()
/openbmc/u-boot/include/
H A Delf.h240 Elf32_Word sh_addralign; /* address alignment */ member
254 Elf64_Xword sh_addralign; /* address alignment */ member
/openbmc/linux/arch/alpha/kernel/
H A Dmodule.c105 got->sh_addralign = 8; in module_frob_arch_sections()
/openbmc/linux/arch/mips/boot/tools/
H A Drelocs.c287 sec->shdr.sh_addralign = elf_xword_to_cpu(shdr.sh_addralign); in read_shdrs()
/openbmc/linux/scripts/
H A Drecordmcount.h316 mcsec.sh_addralign = _w(_size); in append_func()
331 mcsec.sh_addralign = _w(_size); in append_func()
/openbmc/linux/arch/mips/boot/
H A Delf2ecoff.c216 s->sh_addralign = swab32(s->sh_addralign); in convert_elf_shdrs()
/openbmc/openbmc/poky/scripts/
H A Drelocate_sdk.py139 sh_info, sh_addralign, sh_entsize = struct.unpack(sh_fmt, sh_hdr)
/openbmc/u-boot/tools/
H A Dimg2srec.c290 getPtr = ExtractLong((uint32_t *)&sectHeader[i].sh_addralign, getPtr); in ConvertELF()
/openbmc/linux/kernel/
H A Dkexec_file.c827 align = sechdrs[i].sh_addralign; in kexec_purgatory_setup_kbuf()
902 align = sechdrs[i].sh_addralign; in kexec_purgatory_setup_sechdrs()
/openbmc/qemu/include/
H A Delf.h1610 Elf32_Word sh_addralign; member
1623 Elf64_Xword sh_addralign; /* Section alignment */ member
/openbmc/linux/arch/x86/tools/
H A Drelocs.c463 sec->shdr.sh_addralign = elf_xword_to_cpu(shdr.sh_addralign); in read_shdrs()
/openbmc/linux/kernel/module/
H A Dkallsyms.c142 info->symoffs = ALIGN(mod_mem_data->size, symsect->sh_addralign ?: 1); in layout_symtab()
/openbmc/linux/tools/objtool/
H A Delf.c1146 sec->sh.sh_addralign = 1; in elf_create_section()
1192 rsec->sh.sh_addralign = elf_addr_size(elf); in elf_create_rela_section()
/openbmc/qemu/linux-user/
H A Dgen-vdso-elfn.c.inc49 bswaps(&shdr->sh_addralign);
/openbmc/qemu/bsd-user/
H A Delfload.c94 bswaptls(&shdr->sh_addralign); in bswap_shdr()
/openbmc/linux/arch/mips/kernel/
H A Dvpe.c173 ret = ALIGN(*size, sechdr->sh_addralign ? : 1); in get_offset()

12