This is the mail archive of the
mailing list for the GCC project.
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.
(650) 331-3385 x713