[yaml2elf] - Support describing .stack_sizes sections using unique suffixes.
commit15c050cc471c3a224b78e7cee322e165e3b20193
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 25 Sep 2019 12:09:30 +0000 (25 12:09 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 25 Sep 2019 12:09:30 +0000 (25 12:09 +0000)
tree3bfb4cde7ca42e3be115e73477d154f91a4ddd12
parente538310d88d429284ee67584aebbe3ec28bff7d4
[yaml2elf] - Support describing .stack_sizes sections using unique suffixes.

Currently we can't use unique suffixes in section names to describe
stack sizes sections. E.g. '.stack_sizes [1]' will be treated as a regular section.
This happens because we recognize stack sizes section by name and
do not yet drop the suffix before the check.

The patch fixes it.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372853 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ObjectYAML/ELFYAML.h
lib/ObjectYAML/ELFEmitter.cpp
lib/ObjectYAML/ELFYAML.cpp
test/tools/yaml2obj/elf-stack-sizes.yaml