| /freebsd-13.1/bin/sh/tests/builtins/ |
| H A D | command7.0 | 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 -V ld-elf.so.1; :)" = "ld-elf.so.1 is /libexec/ld-elf.so.1"' 14 check '"$(PATH=/libexec command -pv ld-elf.so.1)" = ""' 15 check '"$(PATH=/libexec command -pv 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 -V ld-elf.so.1; :)" = "ld-elf.so.1 is /libexec/ld-elf.so.1"' 21 check '"$(command -pv ld-elf.so.1)" = ""' 22 check '"$(command -pv ld-elf.so.1; :)" = ""'
|
| H A D | type2.0 | 12 check 'PATH=/libexec type ld-elf.so.1 >/dev/null' 17 check 'type ld-elf.so.1 >/dev/null' 21 check 'type ld-elf.so.1 >/dev/null' 24 check '! PATH=/bin type ld-elf.so.1 2>/dev/null'
|
| /freebsd-13.1/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-13.1/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/ |
| H A D | ObjectFileELF.h | 25 elf::elf_word n_namesz = 0; 26 elf::elf_word n_descsz = 0; 27 elf::elf_word n_type = 0; 149 llvm::ArrayRef<elf::ELFProgramHeader> ProgramHeaders(); 173 struct ELFSectionHeaderInfo : public elf::ELFSectionHeader { 181 typedef std::vector<elf::ELFDynamic> DynamicSymbolColl; 193 elf::ELFHeader m_header; 312 const elf::ELFHeader *hdr, 337 const elf::ELFHeader &header); 343 elf::elf_half e_type); [all …]
|
| /freebsd-13.1/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… 259 </elf-function-symbols> 260 <elf-variable-symbols> 267 </elf-variable-symbols> 315 …<var-decl name='aok' type-id='95e97e5e' mangled-name='aok' visibility='default' elf-symbol-id='aok… [all …]
|
| /freebsd-13.1/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-13.1/lib/libelf/ |
| H A D | Makefile | 13 LIB= elf 15 SRCS= elf.c \ 86 native-elf-format.h: 88 SRCS+= native-elf-format.h 102 MAN= elf.3 \ 182 gelf_fsize.3 elf${E}_fsize.3 \ 183 gelf_getchdr.3 elf${E}_getchdr.3 \ 184 gelf_getehdr.3 elf${E}_getehdr.3 \ 185 gelf_getphdr.3 elf${E}_getphdr.3 \ 186 gelf_getshdr.3 elf${E}_getshdr.3 \ [all …]
|
| /freebsd-13.1/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-13.1/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-13.1/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-… 232 </elf-function-symbols> 233 <elf-variable-symbols> 243 </elf-variable-symbols> [all …]
|
| /freebsd-13.1/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 | 143 if (gelf_getehdr(elf, &eh) == NULL) { in _dwarf_elf_relocate() 150 while ((scn = elf_nextscn(elf, scn)) != NULL) { in _dwarf_elf_relocate() 200 _dwarf_elf_init(Dwarf_Debug dbg, Elf *elf, Dwarf_Error *error) in _dwarf_elf_init() argument 224 e->eo_elf = elf; in _dwarf_elf_init() 237 if (gelf_getehdr(elf, &e->eo_ehdr) == NULL) { in _dwarf_elf_init() 245 if (!elf_getshstrndx(elf, &e->eo_strndx)) { in _dwarf_elf_init() 256 while ((scn = elf_nextscn(elf, scn)) != NULL) { in _dwarf_elf_init() 266 if ((name = elf_strptr(elf, e->eo_strndx, sh.sh_name)) == in _dwarf_elf_init() 312 while ((scn = elf_nextscn(elf, scn)) != NULL && j < n) { in _dwarf_elf_init() 324 if ((name = elf_strptr(elf, e->eo_strndx, sh.sh_name)) == in _dwarf_elf_init() [all …]
|
| /freebsd-13.1/usr.bin/elfctl/ |
| H A D | elfctl.c | 95 Elf *elf; in main() local 141 elf = NULL; in main() 150 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) { in main() 156 if ((kind = elf_kind(elf)) != ELF_K_ELF) { in main() 165 if (gelf_getehdr(elf, &ehdr) == NULL) { in main() 182 if (!print_file_features(elf, ehdr.e_phnum, fd, in main() 187 } else if (!edit_file_features(elf, ehdr.e_phnum, fd, in main() 193 if (elf != NULL) in main() 194 elf_end(elf); in main() 303 if (!get_file_features(elf, phcount, fd, &features, &off, in edit_file_features() [all …]
|
| /freebsd-13.1/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-13.1/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-13.1/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='SHA256Init' type='func-type' binding='global-binding' visibility='default-visibi… 17 …<elf-symbol name='SHA2Final' type='func-type' binding='global-binding' visibility='default-visibil… 18 …<elf-symbol name='SHA2Init' type='func-type' binding='global-binding' visibility='default-visibili… 19 …<elf-symbol name='SHA2Update' type='func-type' binding='global-binding' visibility='default-visibi… 404 </elf-function-symbols> 405 <elf-variable-symbols> [all …]
|
| /freebsd-13.1/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> 12 </elf-needed> 13 <elf-function-symbols> 14 …<elf-symbol name='_sol_getmntent' type='func-type' binding='global-binding' visibility='default-vi… 15 …<elf-symbol name='atomic_add_16' type='func-type' binding='global-binding' visibility='default-vis… 289 </elf-function-symbols> 290 <elf-variable-symbols> 296 </elf-variable-symbols> 441 …<var-decl name='aok' type-id='95e97e5e' mangled-name='aok' visibility='default' elf-symbol-id='aok… [all …]
|
| /freebsd-13.1/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-13.1/contrib/llvm-project/lld/ELF/Arch/ |
| H A D | MipsArchTree.cpp | 27 using namespace lld::elf; 297 template <class ELFT> uint32_t elf::calcMipsEFlags() { in calcMipsEFlags() 353 uint8_t elf::getMipsFpAbiFlag(uint8_t oldFlag, uint8_t newFlag, in getMipsFpAbiFlag() 370 bool elf::isMipsN32Abi(const InputFile *f) { in isMipsN32Abi() 385 bool elf::isMicroMips() { return config->eflags & EF_MIPS_MICROMIPS; } in isMicroMips() 387 bool elf::isMipsR6() { in isMipsR6() 392 template uint32_t elf::calcMipsEFlags<ELF32LE>(); 393 template uint32_t elf::calcMipsEFlags<ELF32BE>(); 394 template uint32_t elf::calcMipsEFlags<ELF64LE>(); 395 template uint32_t elf::calcMipsEFlags<ELF64BE>();
|
| /freebsd-13.1/crypto/openssl/crypto/perlasm/ |
| H A D | x86gas.pl | 132 push(@out,".size\t$nmdecor$func,.-".&::LABEL($func)."\n") if ($::elf); 139 if (!defined($com_start) or $::elf) 171 elsif ($::elf) { push (@out,"$tmp,4\n"); } 193 if (($::pic && ($::elf || $::aout)) || $::macosx) 206 elsif ($sym eq "OPENSSL_ia32cap_P" && $::elf>0) 228 elsif ($::elf) 263 *::hidden = sub { push(@out,".hidden\t$nmdecor$_[0]\n"); } if ($::elf);
|
| /freebsd-13.1/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-13.1/sys/tools/ |
| H A D | amd64_ia32_vdso.sh | 41 -o elf-vdso32.so.1 ia32_sigtramp.pico 57 -o elf-vdso32.so.o -I. -I"${S}" -include opt_global.h \ 58 -DVDSO_NAME=elf_vdso32_so_1 -DVDSO_FILE=elf-vdso32.so.1 \ 61 ${NM} -D elf-vdso32.so.1 | ${AWK} \
|
| H A D | amd64_vdso.sh | 50 -o elf-vdso.so.1 sigtramp.pico 66 -o elf-vdso.so.o -I. -I"${S}" -include opt_global.h \ 67 -DVDSO_NAME=elf_vdso_so_1 -DVDSO_FILE=elf-vdso.so.1 \ 70 ${NM} -D elf-vdso.so.1 | \
|