Binary File Descriptor library
≈ 1 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
The Binary File Descriptor library (BFD) is the GNU Project's main mechanism for the portable manipulation of object files in a variety of formats. , it supports approximately 50 file formats and 25 instruction set architectures.
The Binary File Descriptor library (BFD) is the GNU Project's main mechanism for the portable manipulation of object files in a variety of formats. , it supports approximately 50 file formats and 25 instruction set architectures.
History
When David Henkel-Wallace of Cygnus Support proposed developing the library as a way to open up new business opportunities for the company, Richard Stallman said that it would be difficult; David's response was that it wasn't such a "Big Fucking Deal". Abbreviated to "BFD", this became the library name. "Binary File Descriptor" was invented later as a backronym for "BFD".
BFD library usage
Eg: Print object file size using bfd library APIs. include "bfd.h" include int main() { bfd* abfd = bfd_openr("a.o", NULL); printf("%llu\n", bfd_get_size(abfd)); return 0; } Build command: $ gcc main.c -lbfd -o output $ ./output # prints the size
External links
Binutils page, with access to current BFD sources objdump implementation, uses many BFD apis
Text derived from https://en.wikipedia.org/w/index.php?oldid=1378008518 under CC BY-SA 4.0; modifications have been made.