/openbmc/openbmc/poky/meta/recipes-devtools/elfutils/files/ |
H A D | 0003-fixheadercheck.patch | 7 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 D | module-sections.c | 156 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 D | module-plts.c | 233 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 D | module-sections.c | 140 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 D | elf.h | 317 Elf32_Word sh_addralign; member 330 Elf64_Xword sh_addralign; /* Section alignment */ member
|
/openbmc/linux/arch/arm/kernel/ |
H A D | module-plts.c | 264 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 D | module_64.c | 419 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 D | main.c | 312 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 D | linker.c | 375 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 D | module.c | 468 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 D | elf.h | 240 Elf32_Word sh_addralign; /* address alignment */ member 254 Elf64_Xword sh_addralign; /* address alignment */ member
|
/openbmc/linux/arch/alpha/kernel/ |
H A D | module.c | 105 got->sh_addralign = 8; in module_frob_arch_sections()
|
/openbmc/linux/arch/mips/boot/tools/ |
H A D | relocs.c | 287 sec->shdr.sh_addralign = elf_xword_to_cpu(shdr.sh_addralign); in read_shdrs()
|
/openbmc/linux/scripts/ |
H A D | recordmcount.h | 316 mcsec.sh_addralign = _w(_size); in append_func() 331 mcsec.sh_addralign = _w(_size); in append_func()
|
/openbmc/linux/arch/mips/boot/ |
H A D | elf2ecoff.c | 216 s->sh_addralign = swab32(s->sh_addralign); in convert_elf_shdrs()
|
/openbmc/openbmc/poky/scripts/ |
H A D | relocate_sdk.py | 139 sh_info, sh_addralign, sh_entsize = struct.unpack(sh_fmt, sh_hdr)
|
/openbmc/u-boot/tools/ |
H A D | img2srec.c | 290 getPtr = ExtractLong((uint32_t *)§Header[i].sh_addralign, getPtr); in ConvertELF()
|
/openbmc/linux/kernel/ |
H A D | kexec_file.c | 827 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 D | elf.h | 1610 Elf32_Word sh_addralign; member 1623 Elf64_Xword sh_addralign; /* Section alignment */ member
|
/openbmc/linux/arch/x86/tools/ |
H A D | relocs.c | 463 sec->shdr.sh_addralign = elf_xword_to_cpu(shdr.sh_addralign); in read_shdrs()
|
/openbmc/linux/kernel/module/ |
H A D | kallsyms.c | 142 info->symoffs = ALIGN(mod_mem_data->size, symsect->sh_addralign ?: 1); in layout_symtab()
|
/openbmc/linux/tools/objtool/ |
H A D | elf.c | 1146 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 D | gen-vdso-elfn.c.inc | 49 bswaps(&shdr->sh_addralign);
|
/openbmc/qemu/bsd-user/ |
H A D | elfload.c | 94 bswaptls(&shdr->sh_addralign); in bswap_shdr()
|
/openbmc/linux/arch/mips/kernel/ |
H A D | vpe.c | 173 ret = ALIGN(*size, sechdr->sh_addralign ? : 1); in get_offset()
|