This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [lto] PATCH: Locate DWARF information in ELF files



On Jun 18, 2006, at 4:49 PM, Daniel Berlin wrote:
Even some GNU/Linux does not
include libelf by default.  Why not use BFD to read the dwarf2 info
instead?

Because BFD is such overkill for this that it's not even funny. libelf is much much simpler, and i think a good choice to start with.

Is it that much of overkill? Also that means people have to start porting
libelf and bfd for their targets. Why have duplication when something already
exists to get rid of it? Also BFD can be used as the wrapper so you don't really
need to add another duplicated files in GCC to read another file format.


Also maybe Mark could answer the question, why he decided on using libelf without
really looking at alternatives?


-- Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]