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


Andrew Pinski wrote:
> On Jun 18, 2006, at 1:25 PM, Mark Mitchell wrote:
> 
>> This patch makes the LTO front end open ELF files and locate the DWARF
>> sections required for building LTO information.  The ELF-specific bits
>> are segreated into a separate file so that platforms using other
>> object file formats can be supported in future.  We will probably also
>> need some autoconf bits to detect libelf; for now, we'll just assume
>> its available.
> 
> Isn't libelf not part of the GNU project? 

Uli has a replacement for it if you really want one.

> 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.

--Dan


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