.stack_sizes is a SHT_PROGBITS section that contains pairs of
<address (4/8 bytes), stack size (uleb128)>.
This patch teach tools to parse and dump it.
Paths
| Differential D67757
[yaml2obj/obj2yaml] - Add support for .stack_sizes sections. ClosedPublic Authored by grimar on Sep 19 2019, 4:44 AM.
Details Summary .stack_sizes is a SHT_PROGBITS section that contains pairs of This patch teach tools to parse and dump it.
Diff Detail Event Timelinegrimar added a child revision: D67759: [llvm-readobj] - Simplify stack-sizes.test test case..Sep 19 2019, 5:14 AM
grimar added inline comments.
MaskRay retitled this revision from [yaml2obj/obj2yaml] - Add a support for .stack_sizes sections. to [yaml2obj/obj2yaml] - Add support for .stack_sizes sections..Sep 20 2019, 2:13 AM grimar marked 12 inline comments as done. Comment Actions
grimar added inline comments.
Comment Actions LGTM, with one minor comment.
This revision is now accepted and ready to land.Sep 24 2019, 6:02 AM Closed by commit rL372762: [yaml2obj/obj2yaml] - Add support for .stack_sizes sections. (authored by grimar). · Explain WhySep 24 2019, 7:24 AM This revision was automatically updated to reflect the committed changes. grimar marked an inline comment as done.
Revision Contents
Diff 221282 include/llvm/Object/ELF.h
include/llvm/ObjectYAML/ELFYAML.h
lib/ObjectYAML/ELFEmitter.cpp
lib/ObjectYAML/ELFYAML.cpp
test/tools/llvm-readobj/stack-sizes.test
test/tools/obj2yaml/elf-stack-sizes.yaml
test/tools/yaml2obj/elf-stack-sizes.yaml
tools/obj2yaml/elf2yaml.cpp
|
I think we can just use Name == ".stack_sizes" for now. MC doesn't create .stack_sizes.*
Moreover, the error messages below just use plain .stack_sizes.