This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj] - Stop treating ".stack_sizes.*" sections as stack sizes sections.
ClosedPublic

Authored by grimar on Sep 20 2019, 3:03 AM.

Details

Summary

llvm-readobj currently handles .stack_sizes.* (e.g. .stack_sizes.foo)
as a normal stack sizes section. Though MC does not produce sections with
such names. Also, linkers do not combine .stack_sizes.* into .stack_sizes.

A mini discussion about this correctness issue is here: https://reviews.llvm.org/D67757#inline-609274
This patch changes implementation so that only now only '.stack_sizes' name is
accepted as a real stack sizes section.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar created this revision.Sep 20 2019, 3:03 AM
MaskRay accepted this revision.Sep 20 2019, 3:23 AM
MaskRay added inline comments.
tools/llvm-readobj/ELFDumper.cpp
4907 ↗(On Diff #220990)

Omit ()

This revision is now accepted and ready to land.Sep 20 2019, 3:23 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 23 2019, 3:41 AM