Where is bfd.h?

Peng Yu pengyu.ut@gmail.com
Wed Apr 28 05:11:13 GMT 2021


Hi,

I see bfd.h is used by many files in binutils. But I don't see where
is from. Could anybody show me where is it from? Is it from other
packages?

$ grep 'bfd[.]h' **/*.{c,h}
addr2line.c:#include "bfd.h"
addr2line.c:#include "elf-bfd.h"
ar.c:#include "bfd.h"
arsup.c:#include "bfd.h"
bfdtest1.c:#include "bfd.h"
bfdtest2.c:#include "bfd.h"
bucomm.c:#include "bfd.h"
coffdump.c:#include "bfd.h"
coffgrok.c:#include "bfd.h"
cxxfilt.c:#include "bfd.h"
debug.c:#include "bfd.h"
dlltool.c:#include "bfd.h"
dlltool.c:#include "coff-bfd.h"
dllwrap.c:#include "bfd.h"
dwarf.c:#include "bfd.h"
elfcomm.c:/* Do not include bfd.h in this file.  Functions in this file are used
elfcomm.c:#include "bfd.h"
elfedit.c:#include "bfd.h"
filemode.c:#include "bfd.h"
mclex.c:#include "bfd.h"
nm.c:#include "bfd.h"
nm.c:#include "elf-bfd.h"
objcopy.c:#include "bfd.h"
objcopy.c:#include "elf-bfd.h"
objdump.c:#include "bfd.h"
objdump.c:#include "elf-bfd.h"
objdump.c:#include "coff-bfd.h"
od-elf32_avr.c:#include "bfd.h"
od-elf32_avr.c:#include "bfd.h"
od-macho.c:#include "bfd.h"
od-xcoff.c:#include "bfd.h"
prdbg.c:#include "bfd.h"
rclex.c:#include "bfd.h"
rdcoff.c:#include "bfd.h"
rddbg.c:#include "bfd.h"
readelf.c:#include "bfd.h"
rename.c:#include "bfd.h"
resbin.c:#include "bfd.h"
rescoff.c:#include "bfd.h"
resrc.c:#include "bfd.h"
resres.c:#include "bfd.h"
size.c:#include "bfd.h"
srconv.c:#include "bfd.h"
stabs.c:#include "bfd.h"
strings.c:#include "bfd.h"
sysdump.c:#include "bfd.h"
unwind-ia64.c:#include "bfd.h"
version.c:#include "bfd.h"
windmc.c:#include "bfd.h"
windres.c:#include "bfd.h"
winduni.c:#include "bfd.h"
wrstabs.c:#include "bfd.h"
binemul.h:#include "bfd.h"
$ find -name 'bfd*'
./bfdtest2.c
./bfdtest1.c

-- 
Regards,
Peng


More information about the Binutils mailing list