summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-readobj/stack-sizes.test
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2019-09-25 12:18:45 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2019-09-25 12:18:45 +0000
commit8ce581f586ba7e91c387137d6d48a76412e0d813 (patch)
tree7a78c70c4acd70a10cf8c786ffb6080ff9e55cd1 /llvm/test/tools/llvm-readobj/stack-sizes.test
parentcfc2bccfd87e19e99dc9ad177d00f2728fb2e7e1 (diff)
downloadbcm5719-llvm-8ce581f586ba7e91c387137d6d48a76412e0d813.tar.gz
bcm5719-llvm-8ce581f586ba7e91c387137d6d48a76412e0d813.zip
[llvm-readobj] - Simplify stack-sizes.test test case.
This is a follow-up for D67757, which allows to describe .stack_sizes sections with a new YAML syntax. Differential revision: https://reviews.llvm.org/D67759 llvm-svn: 372855
Diffstat (limited to 'llvm/test/tools/llvm-readobj/stack-sizes.test')
-rw-r--r--llvm/test/tools/llvm-readobj/stack-sizes.test30
1 files changed, 20 insertions, 10 deletions
diff --git a/llvm/test/tools/llvm-readobj/stack-sizes.test b/llvm/test/tools/llvm-readobj/stack-sizes.test
index 46eac7b2489..6ad07c7a9a5 100644
--- a/llvm/test/tools/llvm-readobj/stack-sizes.test
+++ b/llvm/test/tools/llvm-readobj/stack-sizes.test
@@ -44,14 +44,15 @@ Sections:
Size: 16
- Name: .stack_sizes
Type: SHT_PROGBITS
-## 2 stack size entries. Each consists of an address (subject to relocation)
-## followed by a ULEB for the size.
- Content: "000000000000000010000000000000000020"
+ Entries:
+ - Size: 0x10
+ - Size: 0x20
Link: .text
- Name: '.stack_sizes [1]'
Type: SHT_PROGBITS
-## One stack size entry.
- Content: "200000000000000008"
+ Entries:
+ - Address: 0x20
+ Size: 0x8
Link: .text.baz
- Name: .rela.stack_sizes
Type: SHT_RELA
@@ -127,7 +128,11 @@ Sections:
Size: 16
- Name: .stack_sizes
Type: SHT_PROGBITS
- Content: "100000000000000010200000000000000020"
+ Entries:
+ - Address: 0x10
+ Size: 0x10
+ - Address: 0x20
+ Size: 0x20
Link: .text
Symbols:
- Name: foo
@@ -215,7 +220,8 @@ Sections:
Flags: [SHF_ALLOC]
- Name: .stack_sizes
Type: SHT_PROGBITS
- Content: "000000000000000008"
+ Entries:
+ - Size: 0x8
Link: .text2
- Name: .rela.stack_sizes
Type: SHT_RELA
@@ -328,7 +334,8 @@ Sections:
- Name: .stack_sizes
Type: SHT_PROGBITS
Link: .text
- Content: "000000000000000008"
+ Entries:
+ - Size: 0x8
- Name: .rela.stack_sizes
Type: SHT_RELA
Info: .stack_sizes
@@ -373,7 +380,8 @@ Sections:
- Name: .stack_sizes
Type: SHT_PROGBITS
Link: .text
- Content: "000000000000000008"
+ Entries:
+ - Size: 0x1
## Check that we handle multiple object files, separately and when they
## are in an archive. This also checks whether we have blank lines between the
@@ -589,7 +597,9 @@ Sections:
Size: 16
- Name: .stack_sizes
Type: SHT_PROGBITS
- Content: "100000000000000010"
+ Entries:
+ - Address: 0x10
+ Size: 0x10
Link: .text
Symbols:
- Name: _Z3foof
OpenPOWER on IntegriCloud