Searched refs:elf (Results 1 - 25 of 408) sorted by path

1234567891011>>

/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/
H A Ddtrace.c1437 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 Dsym.c44 #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 Ddie.c34 #include <elf.h>
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddrti.c101 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 Ddt_module.c36 #include <sys/elf.h>
/freebsd-11-stable/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dctf.c36 #include <elf.h>
H A Dctfconvert.c92 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 Ddwarf.c1889 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 Dinput.c50 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 Doutput.c335 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 Dstabs.c177 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 Dutil.c64 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 Ddump.c788 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 DMakefile120 LIBADD= ctf elf proc pthread rtld_db
/freebsd-11-stable/cddl/usr.bin/ctfconvert/
H A DMakefile39 LIBADD= dwarf elf z pthread
/freebsd-11-stable/cddl/usr.bin/ctfdump/
H A DMakefile20 LIBADD= elf z
/freebsd-11-stable/cddl/usr.bin/ctfmerge/
H A DMakefile36 LIBADD= elf z pthread
/freebsd-11-stable/cddl/usr.sbin/dtrace/
H A DMakefile25 LIBADD= dtrace ctf elf proc
/freebsd-11-stable/cddl/usr.sbin/lockstat/
H A DMakefile24 LIBADD= elf dtrace rt
/freebsd-11-stable/contrib/binutils/bfd/
H A DMakefile.am241 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 DMakefile.in490 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 Dconfigure4522 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 Delf-bfd.h25 #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 DMakefile.am7 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 DMakefile.in241 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

Completed in 428 milliseconds

1234567891011>>