From c9f2cc7e05b2a7f3991a94cad1730a59dd7555e3 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 5 Jun 2013 20:33:54 +0000 Subject: Don't hide the first ELF symbol. The first symbol on ELF is dummy, but it has a defined content and readelf normally displays it. With this change llvm-readobj also displays it and we can check that llvm-mc output is correct according to the standard. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183337 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/ELF/alias-reloc.s | 11 ++++++++++- test/MC/ELF/alias.s | 9 +++++++++ test/MC/ELF/weakref.s | 9 +++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) (limited to 'test/MC/ELF') diff --git a/test/MC/ELF/alias-reloc.s b/test/MC/ELF/alias-reloc.s index f5448e5..0ee73e9 100644 --- a/test/MC/ELF/alias-reloc.s +++ b/test/MC/ELF/alias-reloc.s @@ -25,7 +25,16 @@ foo2: // CHECK-NEXT: ] // CHECK: Symbols [ -// CHECK: Symbol { +// CHECK-NEXT: Symbol { +// CHECK-NEXT: Name: (0) +// CHECK-NEXT: Value: 0x0 +// CHECK-NEXT: Size: 0 +// CHECK-NEXT: Binding: Local (0x0) +// CHECK-NEXT: Type: None (0x0) +// CHECK-NEXT: Other: 0 +// CHECK-NEXT: Section: (0x0) +// CHECK-NEXT: } +// CHECK-NEXT: Symbol { // CHECK-NEXT: Name: bar // CHECK-NEXT: Value: 0x0 // CHECK-NEXT: Size: 0 diff --git a/test/MC/ELF/alias.s b/test/MC/ELF/alias.s index 0575f41..8da75f7 100644 --- a/test/MC/ELF/alias.s +++ b/test/MC/ELF/alias.s @@ -19,6 +19,15 @@ bar4 = foo4 // CHECK: Symbols [ // CHECK-NEXT: Symbol { +// CHECK-NEXT: Name: (0) +// CHECK-NEXT: Value: 0x0 +// CHECK-NEXT: Size: 0 +// CHECK-NEXT: Binding: Local (0x0) +// CHECK-NEXT: Type: None (0x0) +// CHECK-NEXT: Other: 0 +// CHECK-NEXT: Section: (0x0) +// CHECK-NEXT: } +// CHECK-NEXT: Symbol { // CHECK-NEXT: Name: bar // CHECK-NEXT: Value: 0x0 // CHECK-NEXT: Size: 0 diff --git a/test/MC/ELF/weakref.s b/test/MC/ELF/weakref.s index 8717364..6c2d333 100644 --- a/test/MC/ELF/weakref.s +++ b/test/MC/ELF/weakref.s @@ -71,6 +71,15 @@ bar15: // CHECK: Symbols [ // CHECK-NEXT: Symbol { +// CHECK-NEXT: Name: (0) +// CHECK-NEXT: Value: 0x0 +// CHECK-NEXT: Size: 0 +// CHECK-NEXT: Binding: Local (0x0) +// CHECK-NEXT: Type: None (0x0) +// CHECK-NEXT: Other: 0 +// CHECK-NEXT: Section: (0x0) +// CHECK-NEXT: } +// CHECK-NEXT: Symbol { // CHECK-NEXT: Name: bar6 (21) // CHECK-NEXT: Value: 0x18 // CHECK-NEXT: Size: 0 -- cgit v1.1