[PATCH] D30967: [ELF] Update tests to work even with modified defaults

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 14 20:51:02 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL297803: [ELF] Update tests to work even with modified defaults (authored by phosek).

Changed prior to commit:
  https://reviews.llvm.org/D30967?vs=91816&id=91818#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D30967

Files:
  lld/trunk/test/ELF/merge-reloc.s
  lld/trunk/test/ELF/no-merge.s


Index: lld/trunk/test/ELF/merge-reloc.s
===================================================================
--- lld/trunk/test/ELF/merge-reloc.s
+++ lld/trunk/test/ELF/merge-reloc.s
@@ -10,7 +10,7 @@
 
 # CHECK:      Section {
 # CHECK:        Index:
-# CHECK:        Name: .data
+# CHECK:        Name: .rodata
 # CHECK-NEXT:   Type: SHT_PROGBITS
 # CHECK-NEXT:   Flags [
 # CHECK-NEXT:     SHF_ALLOC
@@ -29,7 +29,7 @@
 # CHECK-NEXT: }
 # CHECK:      Section {
 # CHECK:        Index:
-# CHECK:        Name: .data
+# CHECK:        Name: .rodata
 # CHECK-NEXT:   Type: SHT_PROGBITS
 # CHECK-NEXT:   Flags [
 # CHECK-NEXT:     SHF_ALLOC
@@ -66,15 +66,15 @@
 # CHECK-NEXT:   )
 # CHECK-NEXT: }
 
-        .section        .data.1,"aM", at progbits,4
+        .section        .rodata.1,"aM", at progbits,4
         .align  4
         .global foo
 foo:
         .long   0x42
         .long   0x42
         .long   0x42
 
-        .section        .data.2,"aM", at progbits,8
+        .section        .rodata.2,"aM", at progbits,8
         .align  8
         .global bar
 bar:
Index: lld/trunk/test/ELF/no-merge.s
===================================================================
--- lld/trunk/test/ELF/no-merge.s
+++ lld/trunk/test/ELF/no-merge.s
@@ -1,19 +1,19 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
-# RUN: echo "SECTIONS { .data : {*(.data.*)} }" > %t0.script
+# RUN: echo "SECTIONS { .rodata : {*(.rodata.*)} }" > %t0.script
 # RUN: ld.lld %t.o -o %t0.out --script %t0.script
 # RUN: llvm-objdump -s %t0.out | FileCheck %s
 
 # RUN: ld.lld -O0 %t.o -o %t1.out --script %t0.script
 # RUN: llvm-objdump -s %t1.out | FileCheck %s
-# CHECK:      Contents of section .data:
+# CHECK:      Contents of section .rodata:
 # CHECK-NEXT:   0000 01610003
 
-.section .data.aw,"aw", at progbits
+.section .rodata.a,"a", at progbits
 .byte 1
 
-.section .data.ams,"aMS", at progbits,1
+.section .rodata.ams,"aMS", at progbits,1
 .asciz "a"
 
-.section .data.am,"aM", at progbits,1
+.section .rodata.am,"aM", at progbits,1
 .byte 3


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30967.91818.patch
Type: text/x-patch
Size: 2038 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170315/c37c27d0/attachment.bin>


More information about the llvm-commits mailing list