[PATCH] D73962: [DebugInfo] Error if unsupported address size detected in line table

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 7 02:38:22 PST 2020


jhenderson added a comment.

In D73962#1860331 <https://reviews.llvm.org/D73962#1860331>, @aykevl wrote:

> I just noticed this patch from D73961 <https://reviews.llvm.org/D73961>. I am not yet familiar with the DWARF support in LLVM but just wanted to say two things:
>
> - The address size (2) that LLVM uses for AVR might be wrong: `avr-gcc` uses 4 instead. I don't know why exactly but perhaps because there are AVR devices that have more than 64K words of flash (such as the ATmega2560).
> - So far it looks like code compiled with Clang has faulty debug info. `dwarfdump` complains `ERROR:  dwarf_srcfiles:  DW_DLE_HEADER_LEN_BIGGER_THAN_SECSIZE (342) Corrupt dwarf.` while `llvm-dwarfdump` doesn't even try to print the contents of .debug-info.
>
>   Noting it here in case it is of any use, or you happen to have any hints how I could debug this further (I've already spent hours on this).


Hi @aykevl,

It might be worth filing a bug against LLVM to report and discuss this further. Also, if you are able to attach the object file to that bug which you are having trouble with, it might be helpful for debugging purposes.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73962/new/

https://reviews.llvm.org/D73962





More information about the llvm-commits mailing list