Home | History | Annotate | Download | only in libopagent

Lines Matching defs:bfd

3  * Write out defines for BFD arch and mach of the given binary
15 #include <bfd.h>
19 bfd * bfd;
23 bfd = bfd_openr(args[1], NULL);
24 if (bfd == NULL) {
28 r = bfd_check_format(bfd, bfd_object);
34 printf("#define BFD_TARGET_NAME \"%s\"\n", bfd->xvec->name);
35 printf("#define BFD_ARCH %i\n", bfd_get_arch(bfd));
36 printf("#define BFD_MACH %lu\n", bfd_get_mach(bfd));
37 printf("#define BFD_PRINTABLE_NAME \"%s\"\n", bfd_printable_name(bfd));