[PATCH] [lld][ELF] Fix debug info handling.
Nick Kledzik
kledzik at apple.com
Fri Sep 13 15:24:07 PDT 2013
On Sep 13, 2013, at 2:48 PM, Shankar Kalpathi Easwaran <shankarke at gmail.com> wrote:
> On ELF a typeCode section can be associated with any set of sections, there is no one to one relationship with typeCode and ".text”.
Yes, but if the compiler puts functions into .text by default, then the linker can similar say any function in .text has sectionChoice() of sectionBasedOnContent and the ELF writer can put sectionBasedOnContent of typeCode into ".text”.
In other words, the lld model is that for most atoms the section can be inferred from the content. But, that inference can be overridden and a certain section can be forced onto an atom. The ELF reader is currently always forcing the section.
-Nick
More information about the llvm-commits
mailing list