summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2017-03-15 03:38:48 +0000
committerPetr Hosek <phosek@chromium.org>2017-03-15 03:38:48 +0000
commit3b4e29ba68fc180350340c438e93456e58a25e72 (patch)
tree3ddbe0c1f708604246ee99fba2c20be278bc3f1b
parent02ad516b2e0040bd54a4f668b98b1c54dc8e31f2 (diff)
downloadbcm5719-llvm-3b4e29ba68fc180350340c438e93456e58a25e72.tar.gz
bcm5719-llvm-3b4e29ba68fc180350340c438e93456e58a25e72.zip
[ELF] Update tests to work even with modified defaults
D30229 changes the defaults based on section names to match the GAS behavior, which breaks some of the tests that rely on the old defaults. Differential Revision: https://reviews.llvm.org/D30967 llvm-svn: 297803
-rw-r--r--lld/test/ELF/merge-reloc.s8
-rw-r--r--lld/test/ELF/no-merge.s10
2 files changed, 9 insertions, 9 deletions
diff --git a/lld/test/ELF/merge-reloc.s b/lld/test/ELF/merge-reloc.s
index 2447e3e9444..934ac3b9384 100644
--- a/lld/test/ELF/merge-reloc.s
+++ b/lld/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,7 +66,7 @@
# CHECK-NEXT: )
# CHECK-NEXT: }
- .section .data.1,"aM",@progbits,4
+ .section .rodata.1,"aM",@progbits,4
.align 4
.global foo
foo:
@@ -74,7 +74,7 @@ foo:
.long 0x42
.long 0x42
- .section .data.2,"aM",@progbits,8
+ .section .rodata.2,"aM",@progbits,8
.align 8
.global bar
bar:
diff --git a/lld/test/ELF/no-merge.s b/lld/test/ELF/no-merge.s
index f5ae941a997..c8132c259e9 100644
--- a/lld/test/ELF/no-merge.s
+++ b/lld/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",@progbits
+.section .rodata.a,"a",@progbits
.byte 1
-.section .data.ams,"aMS",@progbits,1
+.section .rodata.ams,"aMS",@progbits,1
.asciz "a"
-.section .data.am,"aM",@progbits,1
+.section .rodata.am,"aM",@progbits,1
.byte 3
OpenPOWER on IntegriCloud