summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/test/ELF/Inputs/bad-reloc-target.test4
-rw-r--r--lld/test/ELF/Inputs/shf-info-link.test4
-rw-r--r--lld/test/ELF/arm-thumb-undefined-weak-narrow.test28
-rw-r--r--lld/test/ELF/arm-v4bx.test14
-rw-r--r--lld/test/ELF/bad-reloc-target.test4
-rw-r--r--lld/test/ELF/debug-relocation-none.test9
-rw-r--r--lld/test/ELF/i386-debug-noabs.test4
-rw-r--r--lld/test/ELF/i386-pc16.test12
-rw-r--r--lld/test/ELF/icf11.test12
-rw-r--r--lld/test/ELF/invalid-relocations.test4
-rw-r--r--lld/test/ELF/invalid-undef-section-symbol.test5
-rw-r--r--lld/test/ELF/invalid/broken-relaxation-x64.test13
-rw-r--r--lld/test/ELF/invalid/comdat-broken.test4
-rw-r--r--lld/test/ELF/invalid/common-symbol-alignment.test18
-rw-r--r--lld/test/ELF/invalid/ehframe-broken-relocation.test12
-rw-r--r--lld/test/ELF/invalid/invalid-debug-relocations.test10
-rw-r--r--lld/test/ELF/invalid/invalid-relocation-x64.test4
-rw-r--r--lld/test/ELF/invalid/reloc-section-reordered.test7
-rw-r--r--lld/test/ELF/invalid/sht-group-wrong-section.test4
-rw-r--r--lld/test/ELF/invalid/symtab-sh-info.s12
-rw-r--r--lld/test/ELF/invalid/symtab-symbols.test5
-rw-r--r--lld/test/ELF/invalid/tls-symbol.s8
-rw-r--r--lld/test/ELF/invalid/undefined-local-symbol-in-dso.test3
-rw-r--r--lld/test/ELF/mips-jalr.test23
-rw-r--r--lld/test/ELF/relocation-b-aarch64.test17
-rw-r--r--lld/test/ELF/relocation-group.test4
-rw-r--r--lld/test/ELF/riscv-branch.test45
-rw-r--r--lld/test/ELF/riscv-call.test35
-rw-r--r--lld/test/ELF/riscv-hi20-lo12.test41
-rw-r--r--lld/test/ELF/riscv-jal-error.test47
-rw-r--r--lld/test/ELF/riscv-jal.test73
-rw-r--r--lld/test/ELF/riscv-pcrel-hilo.test35
-rw-r--r--lld/test/ELF/section-align-0.test6
-rw-r--r--lld/test/ELF/section-symbols.test17
-rw-r--r--lld/test/ELF/shf-info-link.test4
-rw-r--r--lld/test/ELF/sht-group-empty.test8
-rw-r--r--lld/test/ELF/undef-broken-debug.test22
37 files changed, 281 insertions, 296 deletions
diff --git a/lld/test/ELF/Inputs/bad-reloc-target.test b/lld/test/ELF/Inputs/bad-reloc-target.test
index dabd005881f..f4cc6717c4e 100644
--- a/lld/test/ELF/Inputs/bad-reloc-target.test
+++ b/lld/test/ELF/Inputs/bad-reloc-target.test
@@ -17,5 +17,5 @@ Sections:
Symbol: foo
Type: R_X86_64_64
Symbols:
- Global:
- - Name: foo \ No newline at end of file
+ - Name: foo
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/Inputs/shf-info-link.test b/lld/test/ELF/Inputs/shf-info-link.test
index b877969168e..a2cc2e87d87 100644
--- a/lld/test/ELF/Inputs/shf-info-link.test
+++ b/lld/test/ELF/Inputs/shf-info-link.test
@@ -17,5 +17,5 @@ Sections:
Symbol: foo
Type: R_X86_64_64
Symbols:
- Global:
- - Name: foo
+ - Name: foo
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/arm-thumb-undefined-weak-narrow.test b/lld/test/ELF/arm-thumb-undefined-weak-narrow.test
index 15f428e019b..9f9129ea31e 100644
--- a/lld/test/ELF/arm-thumb-undefined-weak-narrow.test
+++ b/lld/test/ELF/arm-thumb-undefined-weak-narrow.test
@@ -33,18 +33,16 @@ Sections:
Type: R_ARM_THM_JUMP11
Symbols:
- Global:
- - Type: STT_FUNC
- Name: _start
- Value: 1
- Section: .text
- Local:
- - Type: STT_NOTYPE
- Name: "$t"
- Section: .text
- Value: 0
- Weak:
- - Type: STT_NOTYPE
- Name: undefined_weak
- Value: 0
-
+ - Type: STT_NOTYPE
+ Name: "$t"
+ Section: .text
+ Value: 0
+ - Type: STT_FUNC
+ Name: _start
+ Value: 1
+ Section: .text
+ Binding: STB_GLOBAL
+ - Type: STT_NOTYPE
+ Name: undefined_weak
+ Value: 0
+ Binding: STB_WEAK
diff --git a/lld/test/ELF/arm-v4bx.test b/lld/test/ELF/arm-v4bx.test
index 9d9921d18c6..dd9614a1fa6 100644
--- a/lld/test/ELF/arm-v4bx.test
+++ b/lld/test/ELF/arm-v4bx.test
@@ -29,11 +29,9 @@ Sections:
- Offset: 0x0000000000000000
Type: R_ARM_V4BX
Symbols:
- Global:
- - Name: _start
- Section: .text
- Local:
- - Name: .text
- Type: STT_SECTION
- Section: .text
-DynamicSymbols:
+ - Name: .text
+ Type: STT_SECTION
+ Section: .text
+ - Name: _start
+ Section: .text
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/bad-reloc-target.test b/lld/test/ELF/bad-reloc-target.test
index fea8c5f0f39..90f9349065f 100644
--- a/lld/test/ELF/bad-reloc-target.test
+++ b/lld/test/ELF/bad-reloc-target.test
@@ -25,5 +25,5 @@ Sections:
Symbol: foo
Type: R_X86_64_64
Symbols:
- Global:
- - Name: foo \ No newline at end of file
+ - Name: foo
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/debug-relocation-none.test b/lld/test/ELF/debug-relocation-none.test
index d22941db222..6a8cc5d30f6 100644
--- a/lld/test/ELF/debug-relocation-none.test
+++ b/lld/test/ELF/debug-relocation-none.test
@@ -52,7 +52,8 @@ Sections:
Content: '0111001017000000'
Symbols:
- Global:
- - Name: _start
- Section: .text
- - Name: bar
+ - Name: _start
+ Section: .text
+ Binding: STB_GLOBAL
+ - Name: bar
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/i386-debug-noabs.test b/lld/test/ELF/i386-debug-noabs.test
index dbc7a57f8f7..486cc8d9fbe 100644
--- a/lld/test/ELF/i386-debug-noabs.test
+++ b/lld/test/ELF/i386-debug-noabs.test
@@ -29,5 +29,5 @@ Sections:
Symbol: _GLOBAL_OFFSET_TABLE_
Type: R_386_GOTPC
Symbols:
- Global:
- - Name: _GLOBAL_OFFSET_TABLE_
+ - Name: _GLOBAL_OFFSET_TABLE_
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/i386-pc16.test b/lld/test/ELF/i386-pc16.test
index 14f8b501d08..4033f2c86cf 100644
--- a/lld/test/ELF/i386-pc16.test
+++ b/lld/test/ELF/i386-pc16.test
@@ -32,9 +32,9 @@ Sections:
Symbol: _start
Type: R_386_PC16
Symbols:
- Global:
- - Name: _start
- Type: STT_FUNC
- Section: .text
- Value: 0x1234
- Size: 4
+ - Name: _start
+ Type: STT_FUNC
+ Section: .text
+ Value: 0x1234
+ Size: 4
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/icf11.test b/lld/test/ELF/icf11.test
index edda386909a..1aa3454612a 100644
--- a/lld/test/ELF/icf11.test
+++ b/lld/test/ELF/icf11.test
@@ -43,9 +43,9 @@ Sections:
Symbol: zed
Type: R_X86_64_64
Symbols:
- Global:
- - Name: zed
- Type: STT_FUNC
- Section: .text
- Value: 0x0
- Size: 8
+ - Name: zed
+ Type: STT_FUNC
+ Section: .text
+ Value: 0x0
+ Size: 8
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/invalid-relocations.test b/lld/test/ELF/invalid-relocations.test
index 7c32058c435..53a7981262f 100644
--- a/lld/test/ELF/invalid-relocations.test
+++ b/lld/test/ELF/invalid-relocations.test
@@ -17,7 +17,7 @@ Sections:
Symbol: lulz
Type: R_X86_64_PC32
Symbols:
- Global:
- - Name: lulz
+ - Name: lulz
+ Binding: STB_GLOBAL
# CHECK: invalid relocated section index
diff --git a/lld/test/ELF/invalid-undef-section-symbol.test b/lld/test/ELF/invalid-undef-section-symbol.test
index cb89306b781..1d66885eadf 100644
--- a/lld/test/ELF/invalid-undef-section-symbol.test
+++ b/lld/test/ELF/invalid-undef-section-symbol.test
@@ -22,6 +22,5 @@ Sections:
Symbol: .text
Type: R_X86_64_NONE
Symbols:
- Local:
- - Name: .text
- Type: STT_SECTION
+ - Name: .text
+ Type: STT_SECTION
diff --git a/lld/test/ELF/invalid/broken-relaxation-x64.test b/lld/test/ELF/invalid/broken-relaxation-x64.test
index 10d4655847d..7ff9bb2838c 100644
--- a/lld/test/ELF/invalid/broken-relaxation-x64.test
+++ b/lld/test/ELF/invalid/broken-relaxation-x64.test
@@ -38,9 +38,10 @@ Sections:
Symbol: foo
Type: R_X86_64_GOTTPOFF
Symbols:
- Global:
- - Name: foo
- Type: STT_TLS
- Section: .text
- Value: 0x12345
- Size: 4
+ - Name: foo
+ Type: STT_TLS
+ Section: .text
+ Value: 0x12345
+ Size: 4
+ Binding: STB_GLOBAL
+ \ No newline at end of file
diff --git a/lld/test/ELF/invalid/comdat-broken.test b/lld/test/ELF/invalid/comdat-broken.test
index 9ff8eca476a..3bae4d5b326 100644
--- a/lld/test/ELF/invalid/comdat-broken.test
+++ b/lld/test/ELF/invalid/comdat-broken.test
@@ -21,5 +21,5 @@ Sections:
- SectionOrType: 0xFF
- SectionOrType: 3
Symbols:
- Global:
- - Name: foo
+ - Name: foo
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/invalid/common-symbol-alignment.test b/lld/test/ELF/invalid/common-symbol-alignment.test
index 1a7ebda6b41..7b79441aa11 100644
--- a/lld/test/ELF/invalid/common-symbol-alignment.test
+++ b/lld/test/ELF/invalid/common-symbol-alignment.test
@@ -11,10 +11,10 @@ FileHeader:
Type: ET_REL
Machine: EM_X86_64
Symbols:
- Global:
- - Name: bar
- Type: STT_FUNC
- Index: SHN_COMMON
+ - Name: bar
+ Type: STT_FUNC
+ Index: SHN_COMMON
+ Binding: STB_GLOBAL
## If an object contains a common symbol with alignment greater
## than UINT32_MAX, check we report it.
@@ -29,8 +29,8 @@ FileHeader:
Type: ET_REL
Machine: EM_X86_64
Symbols:
- Global:
- - Name: bar
- Type: STT_FUNC
- Index: SHN_COMMON
- Value: 0x0000003F3F3F3F3F
+ - Name: bar
+ Type: STT_FUNC
+ Index: SHN_COMMON
+ Value: 0x0000003F3F3F3F3F
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/invalid/ehframe-broken-relocation.test b/lld/test/ELF/invalid/ehframe-broken-relocation.test
index 1333a6d0a86..810524eeeff 100644
--- a/lld/test/ELF/invalid/ehframe-broken-relocation.test
+++ b/lld/test/ELF/invalid/ehframe-broken-relocation.test
@@ -23,9 +23,9 @@ Sections:
Symbol: zed
Type: R_X86_64_64
Symbols:
- Global:
- - Name: zed
- Type: STT_FUNC
- Section: .eh_frame
- Value: 0x0
- Size: 8
+ - Name: zed
+ Type: STT_FUNC
+ Section: .eh_frame
+ Value: 0x0
+ Size: 8
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/invalid/invalid-debug-relocations.test b/lld/test/ELF/invalid/invalid-debug-relocations.test
index 2940420f8cd..71e4135e608 100644
--- a/lld/test/ELF/invalid/invalid-debug-relocations.test
+++ b/lld/test/ELF/invalid/invalid-debug-relocations.test
@@ -33,8 +33,8 @@ Sections:
Symbol: _start
Type: 0xFF
Symbols:
- Global:
- - Name: _start
- Type: STT_FUNC
- Section: .text
- Value: 0x0
+ - Name: _start
+ Type: STT_FUNC
+ Section: .text
+ Value: 0x0
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/invalid/invalid-relocation-x64.test b/lld/test/ELF/invalid/invalid-relocation-x64.test
index 3a8d6104971..fddc0ce462c 100644
--- a/lld/test/ELF/invalid/invalid-relocation-x64.test
+++ b/lld/test/ELF/invalid/invalid-relocation-x64.test
@@ -29,5 +29,5 @@ Sections:
Symbol: foo
Type: 0x99
Symbols:
- Global:
- - Name: foo
+ - Name: foo
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/invalid/reloc-section-reordered.test b/lld/test/ELF/invalid/reloc-section-reordered.test
index 3de567f467f..286d6612b76 100644
--- a/lld/test/ELF/invalid/reloc-section-reordered.test
+++ b/lld/test/ELF/invalid/reloc-section-reordered.test
@@ -29,7 +29,6 @@ Sections:
AddressAlign: 0x04
Content: "FFFFFFFFFFFFFFFF"
Symbols:
- Local:
- - Name: .text
- Type: STT_SECTION
- Section: .text
+ - Name: .text
+ Type: STT_SECTION
+ Section: .text
diff --git a/lld/test/ELF/invalid/sht-group-wrong-section.test b/lld/test/ELF/invalid/sht-group-wrong-section.test
index d431dcbc2d2..dba266a1ff0 100644
--- a/lld/test/ELF/invalid/sht-group-wrong-section.test
+++ b/lld/test/ELF/invalid/sht-group-wrong-section.test
@@ -18,5 +18,5 @@ Sections:
- SectionOrType: GRP_COMDAT
- SectionOrType: 12345
Symbols:
- Global:
- - Name: foo
+ - Name: foo
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/invalid/symtab-sh-info.s b/lld/test/ELF/invalid/symtab-sh-info.s
index dc99c712765..9e694dcc498 100644
--- a/lld/test/ELF/invalid/symtab-sh-info.s
+++ b/lld/test/ELF/invalid/symtab-sh-info.s
@@ -16,8 +16,8 @@ Sections:
Info: 0
Type: SHT_SYMTAB
Symbols:
- Global:
- - Name: foo
+ - Name: foo
+ Binding: STB_GLOBAL
## sh_info has value 2 what says that non-local symbol `foo` is local.
## Check we report this case.
@@ -36,8 +36,8 @@ Sections:
Info: 2
Type: SHT_SYMTAB
Symbols:
- Global:
- - Name: foo
+ - Name: foo
+ Binding: STB_GLOBAL
## sh_info has value 0xff what is larger than number of symbols in a .symtab.
## Check we report this case.
@@ -55,5 +55,5 @@ Sections:
Info: 0xff
Type: SHT_SYMTAB
Symbols:
- Global:
- - Name: foo
+ - Name: foo
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/invalid/symtab-symbols.test b/lld/test/ELF/invalid/symtab-symbols.test
index 953b2e32a4a..5f4ae353de5 100644
--- a/lld/test/ELF/invalid/symtab-symbols.test
+++ b/lld/test/ELF/invalid/symtab-symbols.test
@@ -20,6 +20,5 @@ Sections:
AddressAlign: 0x0000000000000010
Content: "00000000"
Symbols:
- Local:
- - Type: STT_NOTYPE
- Section: .symtab
+ - Type: STT_NOTYPE
+ Section: .symtab
diff --git a/lld/test/ELF/invalid/tls-symbol.s b/lld/test/ELF/invalid/tls-symbol.s
index d036859cee6..3f371d406e1 100644
--- a/lld/test/ELF/invalid/tls-symbol.s
+++ b/lld/test/ELF/invalid/tls-symbol.s
@@ -18,7 +18,7 @@ Sections:
Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
Content: ''
Symbols:
- Global:
- - Name: bar
- Type: STT_TLS
- Section: .text
+ - Name: bar
+ Type: STT_TLS
+ Section: .text
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/invalid/undefined-local-symbol-in-dso.test b/lld/test/ELF/invalid/undefined-local-symbol-in-dso.test
index dae19542a6e..c479d04d4d3 100644
--- a/lld/test/ELF/invalid/undefined-local-symbol-in-dso.test
+++ b/lld/test/ELF/invalid/undefined-local-symbol-in-dso.test
@@ -23,5 +23,4 @@ Sections:
Info: 1
Type: SHT_SYMTAB
DynamicSymbols:
- Local:
- - Name: foo
+ - Name: foo
diff --git a/lld/test/ELF/mips-jalr.test b/lld/test/ELF/mips-jalr.test
index c1b119c701b..2ca2c72c0e9 100644
--- a/lld/test/ELF/mips-jalr.test
+++ b/lld/test/ELF/mips-jalr.test
@@ -38,15 +38,14 @@ Sections:
Type: R_MIPS_JALR
Symbols:
- Local:
- - Name: T1
- Type: STT_FUNC
- Section: .text
- Value: 0
- Size: 4
- Global:
- - Name: __start
- Type: STT_FUNC
- Section: .text
- Value: 0
- Size: 4
+ - Name: T1
+ Type: STT_FUNC
+ Section: .text
+ Value: 0
+ Size: 4
+ - Name: __start
+ Type: STT_FUNC
+ Section: .text
+ Value: 0
+ Size: 4
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/relocation-b-aarch64.test b/lld/test/ELF/relocation-b-aarch64.test
index 152cc39d8ac..ff4a82f3ca3 100644
--- a/lld/test/ELF/relocation-b-aarch64.test
+++ b/lld/test/ELF/relocation-b-aarch64.test
@@ -37,12 +37,11 @@ Sections:
Type: R_AARCH64_JUMP26
Symbols:
- Local:
- - Type: STT_FUNC
- Section: .text
- Name: foo
- Value: 0
- - Type: STT_FUNC
- Section: .text
- Name: bar
- Value: 4
+ - Type: STT_FUNC
+ Section: .text
+ Name: foo
+ Value: 0
+ - Type: STT_FUNC
+ Section: .text
+ Name: bar
+ Value: 4
diff --git a/lld/test/ELF/relocation-group.test b/lld/test/ELF/relocation-group.test
index 0820ff8b935..f33697be304 100644
--- a/lld/test/ELF/relocation-group.test
+++ b/lld/test/ELF/relocation-group.test
@@ -39,5 +39,5 @@ Sections:
Symbol: foo
Type: R_X86_64_64
Symbols:
- Global:
- - Name: foo
+ - Name: foo
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/riscv-branch.test b/lld/test/ELF/riscv-branch.test
index 3af9364c502..c4eeceda649 100644
--- a/lld/test/ELF/riscv-branch.test
+++ b/lld/test/ELF/riscv-branch.test
@@ -93,27 +93,26 @@ Sections:
Type: R_RISCV_BRANCH
Addend: -4096
Symbols:
- Local:
- - Name: .text
- Type: STT_SECTION
- Section: .text
- - Name: .data
- Type: STT_SECTION
- Section: .data
- - Name: .bss
- Type: STT_SECTION
- Section: .bss
- - Name: .reloc_max
- Type: STT_SECTION
- Section: .reloc_max
- - Name: L1
- Section: .reloc_max
- - Name: .reloc_min
- Type: STT_SECTION
- Section: .reloc_min
- - Name: L2
- Section: .reloc_min
- Global:
- - Name: _start
- Section: .text
+ - Name: .text
+ Type: STT_SECTION
+ Section: .text
+ - Name: .data
+ Type: STT_SECTION
+ Section: .data
+ - Name: .bss
+ Type: STT_SECTION
+ Section: .bss
+ - Name: .reloc_max
+ Type: STT_SECTION
+ Section: .reloc_max
+ - Name: L1
+ Section: .reloc_max
+ - Name: .reloc_min
+ Type: STT_SECTION
+ Section: .reloc_min
+ - Name: L2
+ Section: .reloc_min
+ - Name: _start
+ Section: .text
+ Binding: STB_GLOBAL
...
diff --git a/lld/test/ELF/riscv-call.test b/lld/test/ELF/riscv-call.test
index d8077d48037..da689358b07 100644
--- a/lld/test/ELF/riscv-call.test
+++ b/lld/test/ELF/riscv-call.test
@@ -74,22 +74,21 @@ Sections:
Type: R_RISCV_CALL
Addend: -4
Symbols:
- Local:
- - Name: .text
- Type: STT_SECTION
- Section: .text
- - Name: .data
- Type: STT_SECTION
- Section: .data
- - Name: .bss
- Type: STT_SECTION
- Section: .bss
- - Name: .reloc_neg
- Type: STT_SECTION
- Section: .reloc_neg
- - Name: L1
- Section: .reloc_neg
- Global:
- - Name: _start
- Section: .text
+ - Name: .text
+ Type: STT_SECTION
+ Section: .text
+ - Name: .data
+ Type: STT_SECTION
+ Section: .data
+ - Name: .bss
+ Type: STT_SECTION
+ Section: .bss
+ - Name: .reloc_neg
+ Type: STT_SECTION
+ Section: .reloc_neg
+ - Name: L1
+ Section: .reloc_neg
+ - Name: _start
+ Section: .text
+ Binding: STB_GLOBAL
...
diff --git a/lld/test/ELF/riscv-hi20-lo12.test b/lld/test/ELF/riscv-hi20-lo12.test
index 8d21d334dfa..15d1e35d82a 100644
--- a/lld/test/ELF/riscv-hi20-lo12.test
+++ b/lld/test/ELF/riscv-hi20-lo12.test
@@ -62,25 +62,24 @@ Sections:
AddressAlign: 0x0000000000000001
Content: 37C5DCFE130585A9
Symbols:
- Local:
- - Name: .text
- Type: STT_SECTION
- Section: .text
- - Name: .data
- Type: STT_SECTION
- Section: .data
- - Name: .bss
- Type: STT_SECTION
- Section: .bss
- - Name: .reloc_12345678
- Type: STT_SECTION
- Section: .reloc_12345678
- - Name: foo
- Value: 0x00000000FEDCBA98
- - Name: .reloc_fedcba98
- Type: STT_SECTION
- Section: .reloc_fedcba98
- Global:
- - Name: _start
- Section: .reloc_12345678
+ - Name: .text
+ Type: STT_SECTION
+ Section: .text
+ - Name: .data
+ Type: STT_SECTION
+ Section: .data
+ - Name: .bss
+ Type: STT_SECTION
+ Section: .bss
+ - Name: .reloc_12345678
+ Type: STT_SECTION
+ Section: .reloc_12345678
+ - Name: foo
+ Value: 0x00000000FEDCBA98
+ - Name: .reloc_fedcba98
+ Type: STT_SECTION
+ Section: .reloc_fedcba98
+ - Name: _start
+ Section: .reloc_12345678
+ Binding: STB_GLOBAL
...
diff --git a/lld/test/ELF/riscv-jal-error.test b/lld/test/ELF/riscv-jal-error.test
index 9df95c9cc4e..113efa5c5f1 100644
--- a/lld/test/ELF/riscv-jal-error.test
+++ b/lld/test/ELF/riscv-jal-error.test
@@ -66,28 +66,27 @@ Sections:
Flags: [ SHF_WRITE, SHF_ALLOC ]
AddressAlign: 0x0000000000000001
Symbols:
- Local:
- - Name: .text
- Type: STT_SECTION
- Section: .text
- - Name: .data
- Type: STT_SECTION
- Section: .data
- - Name: .bss
- Type: STT_SECTION
- Section: .bss
- - Name: L1
- Section: .text
- - Name: L2
- Section: .text
- Value: 0x0000000000000004
- - Name: L3
- Section: .text
- Value: 0x0000000000000008
- - Name: L4
- Section: .text
- Value: 0x000000000000000C
- Global:
- - Name: _start
- Section: .text
+ - Name: .text
+ Type: STT_SECTION
+ Section: .text
+ - Name: .data
+ Type: STT_SECTION
+ Section: .data
+ - Name: .bss
+ Type: STT_SECTION
+ Section: .bss
+ - Name: L1
+ Section: .text
+ - Name: L2
+ Section: .text
+ Value: 0x0000000000000004
+ - Name: L3
+ Section: .text
+ Value: 0x0000000000000008
+ - Name: L4
+ Section: .text
+ Value: 0x000000000000000C
+ - Name: _start
+ Section: .text
+ Binding: STB_GLOBAL
...
diff --git a/lld/test/ELF/riscv-jal.test b/lld/test/ELF/riscv-jal.test
index cb40dc6db12..54412694ea6 100644
--- a/lld/test/ELF/riscv-jal.test
+++ b/lld/test/ELF/riscv-jal.test
@@ -121,41 +121,40 @@ Sections:
Type: R_RISCV_RVC_JUMP
Addend: -2048
Symbols:
- Local:
- - Name: .text
- Type: STT_SECTION
- Section: .text
- - Name: .data
- Type: STT_SECTION
- Section: .data
- - Name: .bss
- Type: STT_SECTION
- Section: .bss
- - Name: .reloc_zero
- Type: STT_SECTION
- Section: .reloc_zero
- - Name: L1
- Section: .reloc_zero
- - Name: L2
- Section: .reloc_zero
- Value: 0x0000000000000004
- - Name: .reloc_max
- Type: STT_SECTION
- Section: .reloc_max
- - Name: L3
- Section: .reloc_max
- - Name: L4
- Section: .reloc_max
- Value: 0x0000000000000004
- - Name: .reloc_min
- Type: STT_SECTION
- Section: .reloc_min
- - Name: L5
- Section: .reloc_min
- - Name: L6
- Section: .reloc_min
- Value: 0x0000000000000004
- Global:
- - Name: _start
- Section: .reloc_zero
+ - Name: .text
+ Type: STT_SECTION
+ Section: .text
+ - Name: .data
+ Type: STT_SECTION
+ Section: .data
+ - Name: .bss
+ Type: STT_SECTION
+ Section: .bss
+ - Name: .reloc_zero
+ Type: STT_SECTION
+ Section: .reloc_zero
+ - Name: L1
+ Section: .reloc_zero
+ - Name: L2
+ Section: .reloc_zero
+ Value: 0x0000000000000004
+ - Name: .reloc_max
+ Type: STT_SECTION
+ Section: .reloc_max
+ - Name: L3
+ Section: .reloc_max
+ - Name: L4
+ Section: .reloc_max
+ Value: 0x0000000000000004
+ - Name: .reloc_min
+ Type: STT_SECTION
+ Section: .reloc_min
+ - Name: L5
+ Section: .reloc_min
+ - Name: L6
+ Section: .reloc_min
+ Value: 0x0000000000000004
+ - Name: _start
+ Section: .reloc_zero
+ Binding: STB_GLOBAL
...
diff --git a/lld/test/ELF/riscv-pcrel-hilo.test b/lld/test/ELF/riscv-pcrel-hilo.test
index 9767e14903c..2cfb711aac0 100644
--- a/lld/test/ELF/riscv-pcrel-hilo.test
+++ b/lld/test/ELF/riscv-pcrel-hilo.test
@@ -82,22 +82,21 @@ Sections:
Symbol: L1
Type: R_RISCV_PCREL_LO12_I
Symbols:
- Local:
- - Name: .text
- Type: STT_SECTION
- Section: .text
- - Name: .data
- Type: STT_SECTION
- Section: .data
- - Name: .bss
- Type: STT_SECTION
- Section: .bss
- - Name: .reloc_neg
- Type: STT_SECTION
- Section: .reloc_neg
- - Name: L1
- Section: .reloc_neg
- Global:
- - Name: _start
- Section: .text
+ - Name: .text
+ Type: STT_SECTION
+ Section: .text
+ - Name: .data
+ Type: STT_SECTION
+ Section: .data
+ - Name: .bss
+ Type: STT_SECTION
+ Section: .bss
+ - Name: .reloc_neg
+ Type: STT_SECTION
+ Section: .reloc_neg
+ - Name: L1
+ Section: .reloc_neg
+ - Name: _start
+ Section: .text
+ Binding: STB_GLOBAL
...
diff --git a/lld/test/ELF/section-align-0.test b/lld/test/ELF/section-align-0.test
index 8827ecf740b..232d43a304c 100644
--- a/lld/test/ELF/section-align-0.test
+++ b/lld/test/ELF/section-align-0.test
@@ -15,6 +15,6 @@ Sections:
AddressAlign: 0
Symbols:
- Global:
- - Name: _start
- Section: .text
+ - Name: _start
+ Section: .text
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/section-symbols.test b/lld/test/ELF/section-symbols.test
index 973b1102fdf..74ed7ab6888 100644
--- a/lld/test/ELF/section-symbols.test
+++ b/lld/test/ELF/section-symbols.test
@@ -24,12 +24,11 @@ Sections:
Info: .text
Relocations:
Symbols:
- Local:
- - Type: STT_SECTION
- Section: .rela.text
- - Type: STT_SECTION
- Section: .shstrtab
- - Type: STT_SECTION
- Section: .symtab
- - Type: STT_SECTION
- Section: .strtab
+ - Type: STT_SECTION
+ Section: .rela.text
+ - Type: STT_SECTION
+ Section: .shstrtab
+ - Type: STT_SECTION
+ Section: .symtab
+ - Type: STT_SECTION
+ Section: .strtab
diff --git a/lld/test/ELF/shf-info-link.test b/lld/test/ELF/shf-info-link.test
index ea15655ec89..497bce5afac 100644
--- a/lld/test/ELF/shf-info-link.test
+++ b/lld/test/ELF/shf-info-link.test
@@ -28,5 +28,5 @@ Sections:
Symbol: foo
Type: R_X86_64_64
Symbols:
- Global:
- - Name: foo
+ - Name: foo
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/sht-group-empty.test b/lld/test/ELF/sht-group-empty.test
index 46c77f332e7..5a7fa9bc2bc 100644
--- a/lld/test/ELF/sht-group-empty.test
+++ b/lld/test/ELF/sht-group-empty.test
@@ -49,7 +49,7 @@ Sections:
Symbol: bar
Type: R_X86_64_64
Symbols:
- Global:
- - Name: foo
- - Name: bar
-
+ - Name: foo
+ Binding: STB_GLOBAL
+ - Name: bar
+ Binding: STB_GLOBAL
diff --git a/lld/test/ELF/undef-broken-debug.test b/lld/test/ELF/undef-broken-debug.test
index 3ed4c2bcbac..444f3bf3f74 100644
--- a/lld/test/ELF/undef-broken-debug.test
+++ b/lld/test/ELF/undef-broken-debug.test
@@ -62,14 +62,14 @@ Sections:
Content: '0111001017000000'
Symbols:
- Local:
- - Name: .debug_abbrev
- Type: STT_SECTION
- Section: .debug_abbrev
- - Name: .debug_line
- Type: STT_SECTION
- Section: .debug_line
- Global:
- - Name: _start
- Section: .text
- - Name: bar
+ - Name: .debug_abbrev
+ Type: STT_SECTION
+ Section: .debug_abbrev
+ - Name: .debug_line
+ Type: STT_SECTION
+ Section: .debug_line
+ - Name: _start
+ Section: .text
+ Binding: STB_GLOBAL
+ - Name: bar
+ Binding: STB_GLOBAL
OpenPOWER on IntegriCloud