I filed the issue https://sourceware.org/bugzilla/show_bug.cgi?id=26850 ,
which was acknowledged and fixed in GNU binutils 2.36
This patch adds the similar behavior to MC.
Differential D91505
ELFAsmParser: Remove non-SHF_ALLOC or non-executable sections' line info/address ranges contribution for -g MaskRay on Nov 15 2020, 10:32 AM. Authored by
Details
I filed the issue https://sourceware.org/bugzilla/show_bug.cgi?id=26850 , This patch adds the similar behavior to MC.
Diff Detail
Event TimelineComment Actions
Probably worth including a bit more detail from that bug (it's useful to know that you filed/fixed that bug - not that that discredits the work, but clarifies that the sentiment (while endorsed by the bug/patches being approved by other members of the compiler community) was initially expressed/motivated/brought up by you there as well). Maybe something like "My patch to implement similar functionality in GNU binutils was accepted and released in GNU binutils 2.36" or the like might be suitable. Does this LLVM patch include the same generalization discussed in the GNU Binutils bug ( https://sourceware.org/bugzilla/show_bug.cgi?id=26850#c2 ) regarding non-loaded sections?
Comment Actions
Thanks for spotting this! (I struggled whether SHF_EXECINSTR should imply SHF_ALLOC) Comment Actions Sounds good to me (I guess ALLOC and EXECINSTR can both be enabled separately? Is this consistent with the Binutils change? (or does one subsume the other?)) Comment Actions Thanks for the review! This is consistent with the GNU as change: only "ax" generates an address range. |
Why the change to DWARFv3 here?