[llvm-readobj] - Stop treating ".stack_sizes.*" sections as stack sizes sections.
commita11782d4a6d8b438374b78b7c2a70e1fecee4407
authorGeorge Rimar <grimar@accesssoftek.com>
Mon, 23 Sep 2019 10:43:09 +0000 (23 10:43 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Mon, 23 Sep 2019 10:43:09 +0000 (23 10:43 +0000)
tree757f8c29ec5c2134b5702f9a841cf68297e0b9f8
parent5e6477164cccaa626607418be2c2f20da5f88356
[llvm-readobj] - Stop treating ".stack_sizes.*" sections as stack sizes sections.

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.

Differential revision: https://reviews.llvm.org/D67824

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372578 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-readobj/stack-sizes.test
tools/llvm-readobj/ELFDumper.cpp