summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objdump/X86
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/tools/llvm-objdump/X86')
-rw-r--r--llvm/test/tools/llvm-objdump/X86/Inputs/simple-executable-x86_64.yaml76
-rw-r--r--llvm/test/tools/llvm-objdump/X86/adjust-vma.test19
-rw-r--r--llvm/test/tools/llvm-objdump/X86/disasm-zeroes-relocations.test4
-rw-r--r--llvm/test/tools/llvm-objdump/X86/disassemble-demangle.test17
4 files changed, 58 insertions, 58 deletions
diff --git a/llvm/test/tools/llvm-objdump/X86/Inputs/simple-executable-x86_64.yaml b/llvm/test/tools/llvm-objdump/X86/Inputs/simple-executable-x86_64.yaml
index f6a1d18a0cd..a7ea4c8811e 100644
--- a/llvm/test/tools/llvm-objdump/X86/Inputs/simple-executable-x86_64.yaml
+++ b/llvm/test/tools/llvm-objdump/X86/Inputs/simple-executable-x86_64.yaml
@@ -33,41 +33,43 @@ Sections:
Flags: [ SHF_MERGE, SHF_STRINGS ]
AddressAlign: 0x0000000000000001
Content: 5562756E747520636C616E672076657273696F6E20332E352D317562756E74753120287472756E6B2920286261736564206F6E204C4C564D20332E352900
-Symbols:
- Local:
- - Type: STT_SECTION
- Section: .text
- - Type: STT_SECTION
- Section: .anothertext
- Value: 0x0000000000000010
- - Type: STT_SECTION
- Section: .eh_frame
- Value: 0x0000000000000050
- - Type: STT_SECTION
- Section: .data
- Value: 0x00000000000000A8
- - Type: STT_SECTION
- Section: .comment
- - Name: /tmp/a.c
- Type: STT_FILE
- - Type: STT_FILE
- Global:
- - Name: somedata
- Type: STT_OBJECT
- Section: .anothertext
- Value: 0x0000000000000045
- - Name: main
- Type: STT_FUNC
- Section: .anothertext
- Value: 0x0000000000000010
- Size: 0x000000000000003F
- - Name: foo
- Type: STT_FUNC
- Section: .text
- Size: 0x000000000000000D
- - Name: a
- Type: STT_OBJECT
- Section: .data
- Value: 0x00000000000000A8
- Size: 0x0000000000000004
+Symbols:
+ - Type: STT_SECTION
+ Section: .text
+ - Type: STT_SECTION
+ Section: .anothertext
+ Value: 0x0000000000000010
+ - Type: STT_SECTION
+ Section: .eh_frame
+ Value: 0x0000000000000050
+ - Type: STT_SECTION
+ Section: .data
+ Value: 0x00000000000000A8
+ - Type: STT_SECTION
+ Section: .comment
+ - Name: /tmp/a.c
+ Type: STT_FILE
+ - Type: STT_FILE
+ - Name: somedata
+ Type: STT_OBJECT
+ Section: .anothertext
+ Value: 0x0000000000000045
+ Binding: STB_GLOBAL
+ - Name: main
+ Type: STT_FUNC
+ Section: .anothertext
+ Value: 0x0000000000000010
+ Size: 0x000000000000003F
+ Binding: STB_GLOBAL
+ - Name: foo
+ Type: STT_FUNC
+ Section: .text
+ Size: 0x000000000000000D
+ Binding: STB_GLOBAL
+ - Name: a
+ Type: STT_OBJECT
+ Section: .data
+ Value: 0x00000000000000A8
+ Size: 0x0000000000000004
+ Binding: STB_GLOBAL
...
diff --git a/llvm/test/tools/llvm-objdump/X86/adjust-vma.test b/llvm/test/tools/llvm-objdump/X86/adjust-vma.test
index 6b1a7c65c1a..b5439a54809 100644
--- a/llvm/test/tools/llvm-objdump/X86/adjust-vma.test
+++ b/llvm/test/tools/llvm-objdump/X86/adjust-vma.test
@@ -119,13 +119,12 @@ Sections:
Symbol: .text
Type: R_X86_64_32
Symbols:
- Local:
- - Name: func
- Type: STT_FUNC
- Section: .text
- Value: 0x0000000000000001
- - Name: sym
- Section: .text
- - Name: .text
- Type: STT_SECTION
- Section: .text
+ - Name: func
+ Type: STT_FUNC
+ Section: .text
+ Value: 0x0000000000000001
+ - Name: sym
+ Section: .text
+ - Name: .text
+ Type: STT_SECTION
+ Section: .text
diff --git a/llvm/test/tools/llvm-objdump/X86/disasm-zeroes-relocations.test b/llvm/test/tools/llvm-objdump/X86/disasm-zeroes-relocations.test
index ad8b025ab50..696a1057f07 100644
--- a/llvm/test/tools/llvm-objdump/X86/disasm-zeroes-relocations.test
+++ b/llvm/test/tools/llvm-objdump/X86/disasm-zeroes-relocations.test
@@ -51,5 +51,5 @@ Sections:
Symbol: x
Type: R_X86_64_64
Symbols:
- Global:
- - Name: x
+ - Name: x
+ Binding: STB_GLOBAL
diff --git a/llvm/test/tools/llvm-objdump/X86/disassemble-demangle.test b/llvm/test/tools/llvm-objdump/X86/disassemble-demangle.test
index 1232033a85c..74f2b94075e 100644
--- a/llvm/test/tools/llvm-objdump/X86/disassemble-demangle.test
+++ b/llvm/test/tools/llvm-objdump/X86/disassemble-demangle.test
@@ -23,15 +23,14 @@ Sections:
AddressAlign: 0x0000000000000010
Content: "0000000000000000"
Symbols:
- Local:
- - Name: _Z3fooi
- Type: STT_FUNC
- Section: .text1
- Value: 0x1000
- - Name: _Z3foov
- Type: STT_FUNC
- Section: .text2
- Value: 0x1010
+ - Name: _Z3fooi
+ Type: STT_FUNC
+ Section: .text1
+ Value: 0x1000
+ - Name: _Z3foov
+ Type: STT_FUNC
+ Section: .text2
+ Value: 0x1010
# We just want to check that the symbols are demangled
# DEMANGLE: foo(int)
OpenPOWER on IntegriCloud