summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/ELF
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/ELF')
-rw-r--r--llvm/test/MC/ELF/basic-elf-32.s4
-rw-r--r--llvm/test/MC/ELF/compression.s21
-rw-r--r--llvm/test/MC/ELF/discriminator.s6
-rw-r--r--llvm/test/MC/ELF/merge.s4
-rw-r--r--llvm/test/MC/ELF/relocation-386.s2
-rw-r--r--llvm/test/MC/ELF/undef-temp.s4
-rw-r--r--llvm/test/MC/ELF/undef.s12
-rw-r--r--llvm/test/MC/ELF/undef2.s18
8 files changed, 31 insertions, 40 deletions
diff --git a/llvm/test/MC/ELF/basic-elf-32.s b/llvm/test/MC/ELF/basic-elf-32.s
index 1036b04a747..cc6b70c2bed 100644
--- a/llvm/test/MC/ELF/basic-elf-32.s
+++ b/llvm/test/MC/ELF/basic-elf-32.s
@@ -46,9 +46,9 @@ main: # @main
// CHECK: Relocations [
// CHECK: Section {{.*}} .rel.text {
-// CHECK: 0x6 R_386_32 .L.str1
+// CHECK: 0x6 R_386_32 -
// CHECK: 0xB R_386_PC32 puts
-// CHECK: 0x12 R_386_32 .L.str2
+// CHECK: 0x12 R_386_32 -
// CHECK: 0x17 R_386_PC32 puts
// CHECK: }
// CHECK: ]
diff --git a/llvm/test/MC/ELF/compression.s b/llvm/test/MC/ELF/compression.s
index 5560ba78c68..12cab4bfc8f 100644
--- a/llvm/test/MC/ELF/compression.s
+++ b/llvm/test/MC/ELF/compression.s
@@ -28,9 +28,24 @@
// In x86 32 bit named symbols are used for temporary symbols in merge
// sections, so make sure we handle symbols inside compressed sections
-// 386-SYMBOLS: Name: .Linfo_string0
-// 386-SYMBOLS-NOT: }
-// 386-SYMBOLS: Section: .zdebug_str
+// 386-SYMBOLS: Symbol {
+// 386-SYMBOLS-NEXT: Name: (0)
+// 386-SYMBOLS-NEXT: Value: 0x0
+// 386-SYMBOLS-NEXT: Size: 0
+// 386-SYMBOLS-NEXT: Binding: Local (0x0)
+// 386-SYMBOLS-NEXT: Type: None (0x0)
+// 386-SYMBOLS-NEXT: Other: 0
+// 386-SYMBOLS-NEXT: Section: Undefined (0x0)
+// 386-SYMBOLS-NEXT: }
+// 386-SYMBOLS-NEXT: Symbol {
+// 386-SYMBOLS-NEXT: Name: (0)
+// 386-SYMBOLS-NEXT: Value: 0x0
+// 386-SYMBOLS-NEXT: Size: 0
+// 386-SYMBOLS-NEXT: Binding: Local (0x0)
+// 386-SYMBOLS-NEXT: Type: None (0x0)
+// 386-SYMBOLS-NEXT: Other: 0
+// 386-SYMBOLS-NEXT: Section: .zdebug_str (0xA)
+// 386-SYMBOLS-NEXT: }
.section .debug_line,"",@progbits
diff --git a/llvm/test/MC/ELF/discriminator.s b/llvm/test/MC/ELF/discriminator.s
index 8a695b96ede..75e4e86cee0 100644
--- a/llvm/test/MC/ELF/discriminator.s
+++ b/llvm/test/MC/ELF/discriminator.s
@@ -19,12 +19,12 @@ foo:
.long .L.debug_abbrev_begin # Offset Into Abbrev. Section
.byte 8 # Address Size (in bytes)
.byte 1 # Abbrev [1] 0xb:0x1b DW_TAG_compile_unit
- .long .Linfo_string0 # DW_AT_producer
+ .long info_string0 # DW_AT_producer
.short 12 # DW_AT_language
- .long .Linfo_string1 # DW_AT_name
+ .long info_string1 # DW_AT_name
.quad 0 # DW_AT_low_pc
.long 0 # DW_AT_stmt_list
- .long .Linfo_string2 # DW_AT_comp_dir
+ .long info_string2 # DW_AT_comp_dir
# DW_AT_APPLE_optimized
.section .debug_abbrev,"",@progbits
.L.debug_abbrev_begin:
diff --git a/llvm/test/MC/ELF/merge.s b/llvm/test/MC/ELF/merge.s
index e787728ae19..8fdb3a3a431 100644
--- a/llvm/test/MC/ELF/merge.s
+++ b/llvm/test/MC/ELF/merge.s
@@ -22,9 +22,9 @@ foo:
// CHECK: Relocations [
// CHECK-NEXT: Section {{.*}} .rela.text {
-// CHECK-NEXT: 0x{{[^ ]+}} R_X86_64_PC32 .Lfoo 0x{{[^ ]+}}
+// CHECK-NEXT: 0x{{[^ ]+}} R_X86_64_PC32 - 0x{{[^ ]+}}
// CHECK-NEXT: 0x{{[^ ]+}} R_X86_64_32 .sec1 0x{{[^ ]+}}
-// CHECK-NEXT: 0x{{[^ ]+}} R_X86_64_32 .Lfoo 0x{{[^ ]+}}
+// CHECK-NEXT: 0x{{[^ ]+}} R_X86_64_32 - 0x{{[^ ]+}}
// CHECK-NEXT: 0x{{[^ ]+}} R_X86_64_PLT32 foo 0x{{[^ ]+}}
// CHECK-NEXT: 0x{{[^ ]+}} R_X86_64_GOTPCREL foo 0x{{[^ ]+}}
// CHECK-NEXT: 0x{{[^ ]+}} R_X86_64_32S zed 0x{{[^ ]+}}
diff --git a/llvm/test/MC/ELF/relocation-386.s b/llvm/test/MC/ELF/relocation-386.s
index 6b7e02f03ea..5ad1227b759 100644
--- a/llvm/test/MC/ELF/relocation-386.s
+++ b/llvm/test/MC/ELF/relocation-386.s
@@ -5,7 +5,7 @@
// CHECK: Relocations [
// CHECK-NEXT: Section {{.*}} .rel.text {
-// CHECK-NEXT: 0x2 R_386_GOTOFF .Lfoo 0x0
+// CHECK-NEXT: 0x2 R_386_GOTOFF - 0x0
// CHECK-NEXT: 0x{{[^ ]+}} R_386_PLT32 bar2 0x0
// CHECK-NEXT: 0x{{[^ ]+}} R_386_GOTPC _GLOBAL_OFFSET_TABLE_ 0x0
// Relocation 3 (bar3@GOTOFF) is done with symbol 7 (bss)
diff --git a/llvm/test/MC/ELF/undef-temp.s b/llvm/test/MC/ELF/undef-temp.s
new file mode 100644
index 00000000000..45537a998e7
--- /dev/null
+++ b/llvm/test/MC/ELF/undef-temp.s
@@ -0,0 +1,4 @@
+// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux %s -o - 2>&1 | FileCheck %s
+
+// CHECK: Undefined temporary
+ .long .Lfoo
diff --git a/llvm/test/MC/ELF/undef.s b/llvm/test/MC/ELF/undef.s
index 9577ea22875..b491ba1527b 100644
--- a/llvm/test/MC/ELF/undef.s
+++ b/llvm/test/MC/ELF/undef.s
@@ -2,7 +2,6 @@
// Test which symbols should be in the symbol table
- .long .Lsym1
.Lsym2:
.Lsym3:
.Lsym4 = .Lsym2 - .Lsym3
@@ -33,7 +32,7 @@ test2_b = undef + 1
// CHECK-NEXT: Section: Undefined
// CHECK-NEXT: }
// CHECK-NEXT: Symbol {
-// CHECK-NEXT: Name: .Lsym8
+// CHECK-NEXT: Name: (0)
// CHECK-NEXT: Value: 0x0
// CHECK-NEXT: Size: 0
// CHECK-NEXT: Binding: Local
@@ -42,15 +41,6 @@ test2_b = undef + 1
// CHECK-NEXT: Section: .rodata.str1.1
// CHECK-NEXT: }
// CHECK-NEXT: Symbol {
-// CHECK-NEXT: Name: .Lsym1
-// CHECK-NEXT: Value: 0x0
-// CHECK-NEXT: Size: 0
-// CHECK-NEXT: Binding: Global
-// CHECK-NEXT: Type: None
-// CHECK-NEXT: Other: 0
-// CHECK-NEXT: Section: Undefined
-// CHECK-NEXT: }
-// CHECK-NEXT: Symbol {
// CHECK-NEXT: Name: sym6
// CHECK-NEXT: Value: 0x0
// CHECK-NEXT: Size: 0
diff --git a/llvm/test/MC/ELF/undef2.s b/llvm/test/MC/ELF/undef2.s
deleted file mode 100644
index 6aa66c05c4b..00000000000
--- a/llvm/test/MC/ELF/undef2.s
+++ /dev/null
@@ -1,18 +0,0 @@
-// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -t | FileCheck %s
-
-// Test that this produces an undefined reference to .Lfoo
-
- je .Lfoo
-
-// CHECK: Section {
-// CHECK: Name: .strtab
-
-// CHECK: Symbol {
-// CHECK: Name: .Lfoo
-// CHECK-NEXT: Value:
-// CHECK-NEXT: Size:
-// CHECK-NEXT: Binding: Global
-// CHECK-NEXT: Type:
-// CHECK-NEXT: Other:
-// CHECK-NEXT: Section:
-// CHECK-NEXT: }
OpenPOWER on IntegriCloud