This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
BFD (mips-elf): Reading relocation entries in user program
- From: "Marshall B. Rogers" <mbr at 64 dot vg>
- To: binutils at sourceware dot org
- Date: Mon, 13 Jul 2009 02:01:38 +0200
- Subject: BFD (mips-elf): Reading relocation entries in user program
Hey,
I've been sifting through documentation on the BFD library in hopes of
finding an interface for reading the relocations of a section/file
(since I noticed various relocation types are defined in "bfd.h").
This doesn't seem to be possible, though - I'm guessing due to BFD's
goal of abstraction.
Still, I love BFD's programming interface, and I prefer it over
libelf, which is quite clunky. Is there a simple - albeit possibly
hacky - way to get at the relocation entries in an ELF file through
BFD? Hopefully I won't have to end up using some strange combination
of BFD and libelf...
Regards,
Marshall