This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Add archive support to ELF
On Fri, Aug 08, 2003 at 10:32:15PM -0700, Ian Lance Taylor wrote:
> "H. J. Lu" <hjl@lucon.org> writes:
>
> > This patch supports "readelf -s libfoo.a".
>
> But the whole point of readelf is that it *doesn't* use the BFD
> library.
Can you compile readelf without including "bfd.h"? Claiming readelf
doesn't use BFD is misleading.
>
> The patch seems misguided to me. If you want readelf to support
> archives, it should includes its own code to read ELF archives.
I can certainly modify readelf to read archives without -lbfd. I can
even remove
#include "bfd.h"
But since readelf is the part of binutils, why do I have to reinvent
the wheel?
H.J.