[lld] r267202 - Add a reduction of the recent bootstrap failure.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 22 13:05:16 PDT 2016


Author: rafael
Date: Fri Apr 22 15:05:16 2016
New Revision: 267202

URL: http://llvm.org/viewvc/llvm-project?rev=267202&view=rev
Log:
Add a reduction of the recent bootstrap failure.

Added:
    lld/trunk/test/ELF/gc-merge-local-sym.s

Added: lld/trunk/test/ELF/gc-merge-local-sym.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/gc-merge-local-sym.s?rev=267202&view=auto
==============================================================================
--- lld/trunk/test/ELF/gc-merge-local-sym.s (added)
+++ lld/trunk/test/ELF/gc-merge-local-sym.s Fri Apr 22 15:05:16 2016
@@ -0,0 +1,40 @@
+// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
+// RUN: ld.lld %t.o -o %t.so -shared
+// RUN: llvm-readobj -s -section-data -t %t.so | FileCheck %s
+
+// CHECK:      Name: .rodata
+// CHECK-NEXT: Type: SHT_PROGBITS
+// CHECK-NEXT: Flags [
+// CHECK-NEXT:   SHF_ALLOC
+// CHECK-NEXT:   SHF_MERGE
+// CHECK-NEXT:   SHF_STRINGS
+// CHECK-NEXT: ]
+// CHECK-NEXT: Address: 0x1C8
+// CHECK-NEXT: Offset:
+// CHECK-NEXT: Size: 8
+// CHECK-NEXT: Link: 0
+// CHECK-NEXT: Info: 0
+// CHECK-NEXT: AddressAlignment: 1
+// CHECK-NEXT: EntrySize: 1
+// CHECK-NEXT: SectionData (
+// CHECK-NEXT:   0000: 61626300 64656600                    |abc.def.|
+// CHECK-NEXT: )
+
+// CHECK:      Symbols [
+// CHECK:        Symbol {
+// CHECK:          Name: bar
+// CHECK-NEXT:     Value: 0x1CC
+// CHECK-NEXT:     Size: 0
+// CHECK-NEXT:     Binding: Local
+// CHECK-NEXT:     Type: None
+// CHECK-NEXT:     Other: 0
+// CHECK-NEXT:     Section: .rodata
+
+        .global foo
+foo:
+        leaq    .L.str(%rip), %rsi
+        .section        .rodata.str1.1,"aMS", at progbits,1
+.L.str:
+        .asciz  "abc"
+bar:
+        .asciz  "def"




More information about the llvm-commits mailing list