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


Geoffrey Keating wrote:

> Something to be aware of in this context is that on Darwin, DWARF
> lives *only* in files which have never been linked.  In particular, if
> you use 'ld -r', you get a .o file which contains only references to
> the original object files for debugging information. 

That sounds like the situation that would arise with a non-Darwin
translation unit that used multiple DWARF sections, as is permitted.  In
the Darwin case, your DWARF reader will have to track down the original
files, if you want LTO to work.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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