/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/ |
H A D | dtrace.c | 1437 Elf *elf; local 1444 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) { 1449 if (elf_kind(elf) != ELF_K_ELF || 1450 gelf_getehdr(elf, &ehdr) == NULL) { 1452 (void) elf_end(elf); 1457 (void) elf_end(elf);
|
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/lockstat/ |
H A D | sym.c | 44 #include <elf.h> 50 #include <sys/elf.h> 169 Elf *elf; local 194 elf = elf_begin(fd, ELF_C_READ, NULL); 196 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) { 205 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) {
|
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/mdb/tools/common/ |
H A D | die.c | 34 #include <elf.h>
|
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | drti.c | 101 Elf64_Ehdr *elf; local 103 Elf32_Ehdr *elf; local 146 elf = (void *)lmp->l_addr; 149 dh.dofhp_addr = elf->e_type == ET_DYN ? (uintptr_t) lmp->l_addr : 0;
|
H A D | dt_module.c | 36 #include <sys/elf.h>
|
/freebsd-11-stable/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | ctf.c | 36 #include <elf.h>
|
H A D | ctfconvert.c | 92 Elf *elf; local 100 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) { 106 source_types = built_source_types(elf, filename); 115 if ((rc = readers[i](td, elf, filename)) == 0) 126 if (findelfsecidx(elf, filename, ".debug") >= 0) { 142 (void) elf_end(elf);
|
H A D | dwarf.c | 1889 should_have_dwarf(Elf *elf) argument 1899 while ((scn = elf_nextscn(elf, scn)) != NULL) { 1922 name = elf_strptr(elf, shdr.sh_link, sym.st_name); 1939 dw_read(tdata_t *td, Elf *elf, char *filename __unused) argument 1951 dw.dw_ptrsz = elf_ptrsz(elf); 1959 if ((rc = dwarf_elf_init(elf, DW_DLC_READ, NULL, NULL, &dw.dw_dw, 1961 if (should_have_dwarf(elf)) { 1986 should_have_dwarf(elf))) {
|
H A D | input.c | 50 built_source_types(Elf *elf, char const *file) argument 55 if ((si = symit_new(elf, file)) == NULL) 87 read_file(Elf *elf, char *file, char *label, read_cb_f *func, void *arg, argument 96 if ((ctfscnidx = findelfsecidx(elf, file, ".SUNW_ctf")) < 0) { 98 (built_source_types(elf, file) & SOURCE_C)) { 105 if ((ctfscn = elf_getscn(elf, ctfscnidx)) == NULL || 110 if ((si = symit_new(elf, file)) == NULL) { 130 read_archive(int fd, Elf *elf, char *file, char *label, read_cb_f *func, argument 138 while ((melf = elf_begin(fd, cmd, elf)) != NULL) { 164 terminate("%s: Unknown elf kin 188 Elf *elf; local 251 count_archive(int fd, Elf *elf, char *file) argument 282 Elf *elf; local 343 symit_new(Elf *elf, const char *file) argument [all...] |
H A D | output.c | 335 sort_iidescs(Elf *elf, const char *file, tdata_t *td, int fuzzymatch, argument 349 if ((stidx = findelfsecidx(elf, file, 352 scn = elf_getscn(elf, stidx); 357 scn = elf_getscn(elf, shdr.sh_link); 713 make_ctf_data(tdata_t *td, Elf *elf, const char *file, size_t *lenp, int flags) argument 718 iiburst = sort_iidescs(elf, file, td, flags & CTF_FUZZY_MATCH, 731 Elf *elf = NULL; local 743 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) 751 if (gelf_getehdr(elf, &ehdr)) { 767 data = make_ctf_data(td, elf, curnam [all...] |
H A D | stabs.c | 177 stabs_read(tdata_t *td, Elf *elf, char *file) argument 193 if (!((stabidx = findelfsecidx(elf, file, ".stab.excl")) >= 0 && 194 (stabstridx = findelfsecidx(elf, file, ".stab.exclstr")) >= 0) && 195 !((stabidx = findelfsecidx(elf, file, ".stab")) >= 0 && 196 (stabstridx = findelfsecidx(elf, file, ".stabstr")) >= 0)) { 208 scn = elf_getscn(elf, stabidx); 250 if ((str = elf_strptr(elf, stabstridx, 378 cvt_fixups(td, elf_ptrsz(elf));
|
H A D | util.c | 64 findelfsecidx(Elf *elf, const char *file, const char *tofind) argument 70 if (gelf_getehdr(elf, &ehdr) == NULL) 73 while ((scn = elf_nextscn(elf, scn)) != NULL) { 82 if ((name = elf_strptr(elf, ehdr.e_shstrndx, 97 elf_ptrsz(Elf *elf) argument 101 if (gelf_getehdr(elf, &ehdr) == NULL) {
|
/freebsd-11-stable/cddl/contrib/opensolaris/tools/ctf/dump/ |
H A D | dump.c | 788 findelfscn(Elf *elf, GElf_Ehdr *ehdr, const char *secname) argument 794 for (scn = NULL; (scn = elf_nextscn(elf, scn)) != NULL; ) { 796 elf_strptr(elf, ehdr->e_shstrndx, shdr.sh_name)) != NULL && 815 Elf *elf; local 871 if ((elf = elf_begin(fd, ELF_C_READ, NULL)) != NULL && 872 gelf_getehdr(elf, &ehdr) != NULL) { 875 Elf_Scn *ctfscn = findelfscn(elf, &ehdr, ".SUNW_ctf"); 893 symscn = elf_getscn(elf, ctfshdr.sh_link); 895 symscn = findelfscn(elf, &ehdr, ".symtab"); 904 symstrscn = elf_getscn(elf, shd [all...] |
/freebsd-11-stable/cddl/lib/libdtrace/ |
H A D | Makefile | 120 LIBADD= ctf elf proc pthread rtld_db
|
/freebsd-11-stable/cddl/usr.bin/ctfconvert/ |
H A D | Makefile | 39 LIBADD= dwarf elf z pthread
|
/freebsd-11-stable/cddl/usr.bin/ctfdump/ |
H A D | Makefile | 20 LIBADD= elf z
|
/freebsd-11-stable/cddl/usr.bin/ctfmerge/ |
H A D | Makefile | 36 LIBADD= elf z pthread
|
/freebsd-11-stable/cddl/usr.sbin/dtrace/ |
H A D | Makefile | 25 LIBADD= dtrace ctf elf proc
|
/freebsd-11-stable/cddl/usr.sbin/lockstat/ |
H A D | Makefile | 24 LIBADD= elf dtrace rt
|
/freebsd-11-stable/contrib/binutils/bfd/ |
H A D | Makefile.am | 241 elf.lo \ 272 elf-m10200.lo \ 273 elf-m10300.lo \ 300 elf-attrs.lo \ 301 elf-strtab.lo \ 302 elf-eh-frame.lo \ 303 elf-vxworks.lo \ 420 elf.c \ 451 elf-m10200.c \ 452 elf [all...] |
H A D | Makefile.in | 490 elf.lo \ 521 elf-m10200.lo \ 522 elf-m10300.lo \ 549 elf-attrs.lo \ 550 elf-strtab.lo \ 551 elf-eh-frame.lo \ 552 elf-vxworks.lo \ 669 elf.c \ 700 elf-m10200.c \ 701 elf [all...] |
H A D | configure | 4522 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7492 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7549 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 7614 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7642 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7661 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8945 *) objformat=elf ;; 8950 freebsd-elf*) 9322 version_type=freebsd-elf 18581 elf [all...] |
H A D | elf-bfd.h | 25 #include "elf/common.h" 26 #include "elf/internal.h" 27 #include "elf/external.h" 50 #define elfNAME(X) NAME(elf,X) 990 /* These functions tell elf-eh-frame whether to attempt to turn 1026 see elf.c, elfcode.h. */ 1032 see elf.c. */ 1362 /* Information grabbed from an elf core file. */ 2008 /* Exported interface for writing elf corefile notes. */ 2078 input (mixing a.out and elf i [all...] |
/freebsd-11-stable/contrib/binutils/bfd/doc/ |
H A D | Makefile.am | 7 core.texi elf.texi elfcode.texi format.texi \ 30 $(srcdir)/../corefile.c $(srcdir)/../elf.c \ 118 elf.texi: chew.c $(srcdir)/../elf.c $(srcdir)/doc.str 120 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elf.c >elf.tmp 121 $(SHELL) $(srcdir)/../../move-if-change elf.tmp elf.texi 202 $(srcdir)/../elf.c \
|
H A D | Makefile.in | 241 core.texi elf.texi elfcode.texi format.texi \ 264 $(srcdir)/../corefile.c $(srcdir)/../elf.c \ 302 $(srcdir)/../elf.c \ 667 elf.texi: chew.c $(srcdir)/../elf.c $(srcdir)/doc.str 669 ./$(MKDOC) -f $(srcdir)/doc.str <$(srcdir)/../elf.c >elf.tmp 670 $(SHELL) $(srcdir)/../../move-if-change elf.tmp elf.texi
|