| /freebsd-14.2/bin/sh/tests/builtins/ |
| H A D | command7.0 | 11 check '"$(PATH=/libexec command -V ld-elf.so.1)" = "ld-elf.so.1 is /libexec/ld-elf.so.1"' 12 check '"$(PATH=/libexec command -V ld-elf.so.1; :)" = "ld-elf.so.1 is /libexec/ld-elf.so.1"' 13 check '"$(PATH=/libexec command -pv ld-elf.so.1)" = ""' 14 check '"$(PATH=/libexec command -pv ld-elf.so.1; :)" = ""' 18 check '"$(command -V ld-elf.so.1)" = "ld-elf.so.1 is /libexec/ld-elf.so.1"' 19 check '"$(command -V ld-elf.so.1; :)" = "ld-elf.so.1 is /libexec/ld-elf.so.1"' 20 check '"$(command -pv ld-elf.so.1)" = ""' 21 check '"$(command -pv ld-elf.so.1; :)" = ""'
|
| H A D | type2.0 | 11 check 'PATH=/libexec type ld-elf.so.1 >/dev/null' 16 check 'type ld-elf.so.1 >/dev/null' 20 check 'type ld-elf.so.1 >/dev/null' 23 check '! PATH=/bin type ld-elf.so.1 2>/dev/null'
|
| /freebsd-14.2/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| H A D | input.c | 50 built_source_types(Elf *elf, char const *file) in built_source_types() argument 55 if ((si = symit_new(elf, file)) == NULL) in built_source_types() 110 if ((si = symit_new(elf, file)) == NULL) { in read_file() 188 Elf *elf; in read_ctf_common() local 201 switch (elf_kind(elf)) { in read_ctf_common() 208 found = read_file(elf, file, label, in read_ctf_common() 216 (void) elf_end(elf); in read_ctf_common() 282 Elf *elf; in count_files() local 304 switch (elf_kind(elf)) { in count_files() 319 (void) elf_end(elf); in count_files() [all …]
|
| H A D | ctfconvert.c | 91 Elf *elf; in file_read() local 99 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) { in file_read() 105 source_types = built_source_types(elf, filename); in file_read() 114 if ((rc = readers[i](td, elf, filename)) == 0) in file_read() 125 if (findelfsecidx(elf, filename, ".debug") >= 0) { in file_read() 141 (void) elf_end(elf); in file_read()
|
| H A D | util.c | 65 findelfsecidx(Elf *elf, const char *file, const char *tofind) in findelfsecidx() argument 71 if (gelf_getehdr(elf, &ehdr) == NULL) in findelfsecidx() 74 while ((scn = elf_nextscn(elf, scn)) != NULL) { in findelfsecidx() 83 if ((name = elf_strptr(elf, ehdr.e_shstrndx, in findelfsecidx() 98 elf_ptrsz(Elf *elf) in elf_ptrsz() argument 102 if (gelf_getehdr(elf, &ehdr) == NULL) { in elf_ptrsz()
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/ |
| H A D | ObjectFileELF.h | 26 elf::elf_word n_namesz = 0; 27 elf::elf_word n_descsz = 0; 28 elf::elf_word n_type = 0; 150 llvm::ArrayRef<elf::ELFProgramHeader> ProgramHeaders(); 178 struct ELFSectionHeaderInfo : public elf::ELFSectionHeader { 186 typedef std::vector<elf::ELFDynamic> DynamicSymbolColl; 198 elf::ELFHeader m_header; 318 const elf::ELFHeader *hdr, 343 const elf::ELFHeader &header); 349 elf::elf_half e_type); [all …]
|
| /freebsd-14.2/usr.bin/ldd/ |
| H A D | ldd.c | 278 buf = elf_rawfile(elf, NULL); in has_freebsd_abi_tag() 345 buf = elf_rawfile(elf, NULL); in is_pie() 393 Elf *elf; in is_executable() local 410 if (elf == NULL) { in is_executable() 414 if (elf_kind(elf) != ELF_K_ELF) { in is_executable() 415 elf_end(elf); in is_executable() 421 elf_end(elf); in is_executable() 436 elf_end(elf); in is_executable() 455 elf_end(elf); in is_executable() 464 elf_end(elf); in is_executable() [all …]
|
| /freebsd-14.2/lib/libelf/ |
| H A D | Makefile | 12 LIB= elf 14 SRCS= elf.c \ 85 native-elf-format.h: 87 SRCS+= native-elf-format.h 101 MAN= elf.3 \ 181 gelf_fsize.3 elf${E}_fsize.3 \ 182 gelf_getchdr.3 elf${E}_getchdr.3 \ 183 gelf_getehdr.3 elf${E}_getehdr.3 \ 184 gelf_getphdr.3 elf${E}_getphdr.3 \ 185 gelf_getshdr.3 elf${E}_getshdr.3 \ [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/lib/libuutil/ |
| H A D | libuutil.abi | 1 <abi-corpus version='2.0' architecture='elf-amd-x86_64' soname='libuutil.so.3'> 2 <elf-needed> 5 </elf-needed> 6 <elf-function-symbols> 7 …<elf-symbol name='_sol_getmntent' type='func-type' binding='global-binding' visibility='default-vi… 8 …<elf-symbol name='atomic_add_16' type='func-type' binding='global-binding' visibility='default-vis… 9 …<elf-symbol name='atomic_add_16_nv' type='func-type' binding='global-binding' visibility='default-… 10 …<elf-symbol name='atomic_add_32' type='func-type' binding='global-binding' visibility='default-vis… 12 …<elf-symbol name='atomic_add_64' type='func-type' binding='global-binding' visibility='default-vis… 14 …<elf-symbol name='atomic_add_8' type='func-type' binding='global-binding' visibility='default-visi… [all …]
|
| /freebsd-14.2/contrib/elftoolchain/libelf/ |
| H A D | Makefile | 5 LIB= elf 7 SRCS= elf.c \ 74 MAN= elf.3 \ 153 gelf_fsize.3 elf${E}_fsize.3 \ 154 gelf_getehdr.3 elf${E}_getehdr.3 \ 155 gelf_getphdr.3 elf${E}_getphdr.3 \ 156 gelf_getshdr.3 elf${E}_getshdr.3 \ 157 gelf_newehdr.3 elf${E}_newehdr.3 \ 158 gelf_newphdr.3 elf${E}_newphdr.3 \ 159 gelf_xlatetof.3 elf${E}_xlatetof.3 \ [all …]
|
| /freebsd-14.2/contrib/elftoolchain/size/ |
| H A D | size.c | 307 data = elf_rawfile(elf, &max_size); in handle_core_note() 619 Elf *elf, *elf1; in handle_elf() local 628 arhdr = elf_getarhdr(elf); in handle_elf() 630 (void) elf_end(elf); in handle_elf() 635 if (elf_kind(elf) != ELF_K_ELF || in handle_elf() 637 elf_cmd = elf_next(elf); in handle_elf() 638 (void) elf_end(elf); in handle_elf() 646 (void) elf_end(elf); in handle_elf() 663 sysv_calc(elf, &elfhdr, &shdr); in handle_elf() 677 elf_cmd = elf_next(elf); in handle_elf() [all …]
|
| /freebsd-14.2/contrib/elftoolchain/libdwarf/ |
| H A D | dwarf_init.c | 33 dwarf_elf_init(Elf *elf, int mode, Dwarf_Handler errhand, Dwarf_Ptr errarg, in dwarf_elf_init() argument 39 if (elf == NULL || ret_dbg == NULL) { in dwarf_elf_init() 52 if (_dwarf_elf_init(dbg, elf, error) != DW_DLE_NONE) { in dwarf_elf_init() 73 dwarf_get_elf(Dwarf_Debug dbg, Elf **elf, Dwarf_Error *error) in dwarf_get_elf() argument 77 if (dbg == NULL || elf == NULL) { in dwarf_get_elf() 83 *elf = e->eo_elf; in dwarf_get_elf() 93 Elf *elf; in dwarf_init() local 111 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) { in dwarf_init() 119 if (_dwarf_elf_init(dbg, elf, error) != DW_DLE_NONE) { in dwarf_init()
|
| H A D | libdwarf_elf_init.c | 144 if (gelf_getehdr(elf, &eh) == NULL) { in _dwarf_elf_relocate() 151 while ((scn = elf_nextscn(elf, scn)) != NULL) { in _dwarf_elf_relocate() 252 _dwarf_elf_init(Dwarf_Debug dbg, Elf *elf, Dwarf_Error *error) in _dwarf_elf_init() argument 277 e->eo_elf = elf; in _dwarf_elf_init() 290 if (gelf_getehdr(elf, &e->eo_ehdr) == NULL) { in _dwarf_elf_init() 298 if (!elf_getshstrndx(elf, &e->eo_strndx)) { in _dwarf_elf_init() 309 while ((scn = elf_nextscn(elf, scn)) != NULL) { in _dwarf_elf_init() 319 if ((name = elf_strptr(elf, e->eo_strndx, sh.sh_name)) == in _dwarf_elf_init() 365 while ((scn = elf_nextscn(elf, scn)) != NULL && j < n) { in _dwarf_elf_init() 375 if ((name = elf_strptr(elf, e->eo_strndx, sh.sh_name)) == in _dwarf_elf_init() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/lib/libnvpair/ |
| H A D | libnvpair.abi | 1 <abi-corpus version='2.0' architecture='elf-amd-x86_64' soname='libnvpair.so.3'> 2 <elf-needed> 5 </elf-needed> 6 <elf-function-symbols> 7 …<elf-symbol name='dump_nvlist' type='func-type' binding='global-binding' visibility='default-visib… 8 …<elf-symbol name='fnvlist_add_boolean' type='func-type' binding='global-binding' visibility='defau… 11 …<elf-symbol name='fnvlist_add_byte' type='func-type' binding='global-binding' visibility='default-… 35 …<elf-symbol name='fnvlist_dup' type='func-type' binding='global-binding' visibility='default-visib… 233 </elf-function-symbols> 234 <elf-variable-symbols> [all …]
|
| /freebsd-14.2/usr.bin/elfctl/ |
| H A D | elfctl.c | 92 Elf *elf; in main() local 138 elf = NULL; in main() 147 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) { in main() 153 if ((kind = elf_kind(elf)) != ELF_K_ELF) { in main() 162 if (gelf_getehdr(elf, &ehdr) == NULL) { in main() 179 if (!print_file_features(elf, ehdr.e_phnum, fd, in main() 184 } else if (!edit_file_features(elf, ehdr.e_phnum, fd, in main() 190 if (elf != NULL) in main() 191 elf_end(elf); in main() 300 if (!get_file_features(elf, phcount, fd, &features, &off, in edit_file_features() [all …]
|
| /freebsd-14.2/contrib/elftoolchain/brandelf/ |
| H A D | brandelf.c | 94 Elf *elf; in main() local 159 elf = NULL; in main() 168 if ((elf = elf_begin(fd, (change || force) ? ELF_C_RDWR : in main() 175 if ((kind = elf_kind(elf)) != ELF_K_ELF) { in main() 185 if (gelf_getehdr(elf, &ehdr) == NULL) { in main() 206 if (elf_flagelf(elf, ELF_C_SET, ELF_F_LAYOUT) == 0) { in main() 217 if (gelf_update_ehdr(elf, &ehdr) == 0) { in main() 227 if (elf_update(elf, ELF_C_WRITE) == -1) { in main() 235 if (elf) in main() 236 elf_end(elf); in main()
|
| /freebsd-14.2/contrib/libexecinfo/ |
| H A D | symtab.c | 87 Elf *elf; in symtab_create() local 97 elf = elf_begin(fd, ELF_C_READ, NULL); in symtab_create() 98 if (elf == NULL) { in symtab_create() 105 elf_end(elf); in symtab_create() 108 if (gelf_getehdr(elf, &ehdr) == NULL) { in symtab_create() 110 elf_end(elf); in symtab_create() 116 while ((scn = elf_nextscn(elf, scn)) != NULL) { in symtab_create() 141 elf_strptr(elf, shdr.sh_link, sym.st_name), in symtab_create() 157 elf_strptr(elf, shdr.sh_link, sym.st_name)); in symtab_create() 169 elf_end(elf); in symtab_create() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/lib/libzfs_core/ |
| H A D | libzfs_core.abi | 1 <abi-corpus version='2.0' architecture='elf-amd-x86_64' soname='libzfs_core.so.3'> 2 <elf-needed> 6 </elf-needed> 7 <elf-function-symbols> 8 …<elf-symbol name='_sol_getmntent' type='func-type' binding='global-binding' visibility='default-vi… 9 …<elf-symbol name='atomic_add_16' type='func-type' binding='global-binding' visibility='default-vis… 10 …<elf-symbol name='atomic_add_16_nv' type='func-type' binding='global-binding' visibility='default-… 11 …<elf-symbol name='atomic_add_32' type='func-type' binding='global-binding' visibility='default-vis… 13 …<elf-symbol name='atomic_add_64' type='func-type' binding='global-binding' visibility='default-vis… 15 …<elf-symbol name='atomic_add_8' type='func-type' binding='global-binding' visibility='default-visi… [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/lib/libzfs/ |
| H A D | libzfs.abi | 1 <abi-corpus version='2.0' architecture='elf-amd-x86_64' soname='libzfs.so.4'> 2 <elf-needed> 14 </elf-needed> 15 <elf-function-symbols> 16 …<elf-symbol name='_sol_getmntent' type='func-type' binding='global-binding' visibility='default-vi… 17 …<elf-symbol name='atomic_add_16' type='func-type' binding='global-binding' visibility='default-vis… 19 …<elf-symbol name='atomic_add_32' type='func-type' binding='global-binding' visibility='default-vis… 23 …<elf-symbol name='atomic_add_8' type='func-type' binding='global-binding' visibility='default-visi… 596 </elf-function-symbols> 597 <elf-variable-symbols> [all …]
|
| /freebsd-14.2/tools/test/stress2/misc/ |
| H A D | elf.sh | 40 save=/tmp/elf.sh.img 56 cp /bin/ps ./elf 58 /tmp/flip -n 1 ./elf 59 cp elf $save; fsync $save; sync 60 timeout -s SIGKILL 2 ./elf aux > /dev/null 2>&1 || break
|
| /freebsd-14.2/crypto/openssl/crypto/perlasm/ |
| H A D | x86gas.pl | 133 push(@out,".size\t$nmdecor$func,.-".&::LABEL($func)."\n") if ($::elf); 140 if (!defined($com_start) or $::elf) 172 elsif ($::elf) { push (@out,"$tmp,4\n"); } 176 if ($::elf) { 214 if (($::pic && ($::elf || $::aout)) || $::macosx) 227 elsif ($sym eq "OPENSSL_ia32cap_P" && $::elf>0) 249 elsif ($::elf) 284 *::hidden = sub { push(@out,".hidden\t$nmdecor$_[0]\n"); } if ($::elf);
|
| /freebsd-14.2/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| H A D | drti.c | 102 Elf64_Ehdr *elf; in dtrace_dof_init() local 104 Elf32_Ehdr *elf; in dtrace_dof_init() local 148 elf = (void *)lmp->l_base; in dtrace_dof_init() 150 elf = (void *)lmp->l_addr; in dtrace_dof_init() 155 dh.dofhp_addr = elf->e_type == ET_DYN ? (uintptr_t) lmp->l_base : 0; in dtrace_dof_init() 158 dh.dofhp_addr = elf->e_type == ET_DYN ? (uintptr_t) lmp->l_addr : 0; in dtrace_dof_init()
|
| /freebsd-14.2/contrib/llvm-project/lld/ELF/Arch/ |
| H A D | MipsArchTree.cpp | 26 using namespace lld::elf; 296 template <class ELFT> uint32_t elf::calcMipsEFlags() { in calcMipsEFlags() 352 uint8_t elf::getMipsFpAbiFlag(uint8_t oldFlag, uint8_t newFlag, in getMipsFpAbiFlag() 369 bool elf::isMipsN32Abi(const InputFile *f) { in isMipsN32Abi() 384 bool elf::isMicroMips() { return config->eflags & EF_MIPS_MICROMIPS; } in isMicroMips() 386 bool elf::isMipsR6() { in isMipsR6() 391 template uint32_t elf::calcMipsEFlags<ELF32LE>(); 392 template uint32_t elf::calcMipsEFlags<ELF32BE>(); 393 template uint32_t elf::calcMipsEFlags<ELF64LE>(); 394 template uint32_t elf::calcMipsEFlags<ELF64BE>();
|
| /freebsd-14.2/contrib/elftoolchain/strings/ |
| H A D | strings.c | 266 Elf *elf; in handle_elf() local 280 elf = elf_begin(fd, ELF_C_READ, NULL); in handle_elf() 281 if (elf_kind(elf) != ELF_K_ELF) { in handle_elf() 282 (void)elf_end(elf); in handle_elf() 286 if (gelf_getehdr(elf, &elfhdr) == NULL) { in handle_elf() 287 (void)elf_end(elf); in handle_elf() 293 (void)elf_end(elf); in handle_elf() 297 while ((scn = elf_nextscn(elf, scn)) != NULL) { in handle_elf() 307 (void)elf_end(elf); in handle_elf()
|
| /freebsd-14.2/stand/powerpc/boot1.chrp/ |
| H A D | generate-hfs.sh | 32 echo 'Boot1 START' | dd of=boot1.elf.tmp cbs=$BOOT1_SIZE count=1 conv=block 34 hcopy boot1.elf.tmp :boot1.elf 40 rm boot1.elf.tmp
|