[PATCH] D81469: [DebugInfo/DWARF] - Report .eh_frame sections of version != 1.

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 10 09:57:05 PDT 2020


MaskRay added a comment.

In D81469#2084492 <https://reviews.llvm.org/D81469#2084492>, @grimar wrote:

> One more way to have a single test right now is to use yaml2obj instead of llvm-mc.
>
> With it I'll need to specify a binary blob for the section content though.
>  (yaml2obj doesn't fully support the .eh_frame section yet I believe)
>
> I.e. it will look like:
>
>   Sections:
>     - Name: .eh_frame
>       Type: SHT_PROGBITS
>   ## A comment describing the content.
>       Content: "001122334455"
>
>
> Should I do it?


Can you just use `.byte` `.long` to construct the content of .eh_frame? It will be more reasonable than hex pairs in YAML.


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

https://reviews.llvm.org/D81469





More information about the llvm-commits mailing list