[lld] r251969 - Avoid checking for irrelevant facts.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 3 11:56:47 PST 2015
Author: rafael
Date: Tue Nov 3 13:56:47 2015
New Revision: 251969
URL: http://llvm.org/viewvc/llvm-project?rev=251969&view=rev
Log:
Avoid checking for irrelevant facts.
If the test is not for layout, it should not depend on the address for example.
Modified:
lld/trunk/test/elf2/bss.s
lld/trunk/test/elf2/emulation.s
lld/trunk/test/elf2/string-table.s
lld/trunk/test/elf2/strip-all.s
Modified: lld/trunk/test/elf2/bss.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf2/bss.s?rev=251969&r1=251968&r2=251969&view=diff
==============================================================================
--- lld/trunk/test/elf2/bss.s (original)
+++ lld/trunk/test/elf2/bss.s Tue Nov 3 13:56:47 2015
@@ -16,7 +16,7 @@
// CHECK-NEXT: Size: 4
// CHECK-NEXT: Link: 0
// CHECK-NEXT: Info: 0
-// CHECK-NEXT: AddressAlignment: 4
+// CHECK-NEXT: AddressAlignment:
// CHECK-NEXT: EntrySize: 0
// CHECK-NEXT: }
Modified: lld/trunk/test/elf2/emulation.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf2/emulation.s?rev=251969&r1=251968&r2=251969&view=diff
==============================================================================
--- lld/trunk/test/elf2/emulation.s (original)
+++ lld/trunk/test/elf2/emulation.s Tue Nov 3 13:56:47 2015
@@ -18,15 +18,15 @@
# X86-64-NEXT: Version: 1
# X86-64-NEXT: Entry: 0x100B0
# X86-64-NEXT: ProgramHeaderOffset: 0x40
-# X86-64-NEXT: SectionHeaderOffset: 0x118
+# X86-64-NEXT: SectionHeaderOffset:
# X86-64-NEXT: Flags [ (0x0)
# X86-64-NEXT: ]
# X86-64-NEXT: HeaderSize: 64
# X86-64-NEXT: ProgramHeaderEntrySize: 56
# X86-64-NEXT: ProgramHeaderCount: 2
# X86-64-NEXT: SectionHeaderEntrySize: 64
-# X86-64-NEXT: SectionHeaderCount: 7
-# X86-64-NEXT: StringTableSectionIndex: 5
+# X86-64-NEXT: SectionHeaderCount:
+# X86-64-NEXT: StringTableSectionIndex:
# X86-64-NEXT: }
# RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %s -o %tx86
@@ -49,15 +49,15 @@
# X86-NEXT: Version: 1
# X86-NEXT: Entry: 0x10074
# X86-NEXT: ProgramHeaderOffset: 0x34
-# X86-NEXT: SectionHeaderOffset: 0xC8
+# X86-NEXT: SectionHeaderOffset:
# X86-NEXT: Flags [ (0x0)
# X86-NEXT: ]
# X86-NEXT: HeaderSize: 52
# X86-NEXT: ProgramHeaderEntrySize: 32
# X86-NEXT: ProgramHeaderCount: 2
# X86-NEXT: SectionHeaderEntrySize: 40
-# X86-NEXT: SectionHeaderCount: 7
-# X86-NEXT: StringTableSectionIndex: 5
+# X86-NEXT: SectionHeaderCount:
+# X86-NEXT: StringTableSectionIndex:
# X86-NEXT: }
# RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %tppc64
@@ -80,15 +80,15 @@
# PPC64-NEXT: Version: 1
# PPC64-NEXT: Entry: 0x100000B0
# PPC64-NEXT: ProgramHeaderOffset: 0x40
-# PPC64-NEXT: SectionHeaderOffset: 0x118
+# PPC64-NEXT: SectionHeaderOffset:
# PPC64-NEXT: Flags [ (0x0)
# PPC64-NEXT: ]
# PPC64-NEXT: HeaderSize: 64
# PPC64-NEXT: ProgramHeaderEntrySize: 56
# PPC64-NEXT: ProgramHeaderCount: 2
# PPC64-NEXT: SectionHeaderEntrySize: 64
-# PPC64-NEXT: SectionHeaderCount: 7
-# PPC64-NEXT: StringTableSectionIndex: 5
+# PPC64-NEXT: SectionHeaderCount:
+# PPC64-NEXT: StringTableSectionIndex:
# PPC64-NEXT: }
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %tmips
Modified: lld/trunk/test/elf2/string-table.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf2/string-table.s?rev=251969&r1=251968&r2=251969&view=diff
==============================================================================
--- lld/trunk/test/elf2/string-table.s (original)
+++ lld/trunk/test/elf2/string-table.s Tue Nov 3 13:56:47 2015
@@ -52,7 +52,7 @@ _start:
// CHECK-NEXT: ]
// CHECK-NEXT: Address: 0x0
// CHECK-NEXT: Offset:
-// CHECK-NEXT: Size: 51
+// CHECK-NEXT: Size:
// CHECK-NEXT: Link: 0
// CHECK-NEXT: Info: 0
// CHECK-NEXT: AddressAlignment: 1
Modified: lld/trunk/test/elf2/strip-all.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf2/strip-all.s?rev=251969&r1=251968&r2=251969&view=diff
==============================================================================
--- lld/trunk/test/elf2/strip-all.s (original)
+++ lld/trunk/test/elf2/strip-all.s Tue Nov 3 13:56:47 2015
@@ -3,14 +3,14 @@
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: ld.lld2 %t.o -o %t1
#RUN: llvm-objdump -section-headers %t1 | FileCheck %s -check-prefix BEFORE
-#BEFORE: 4 .symtab 00000030
-#BEFORE-NEXT: 5 .shstrtab 0000002c
-#BEFORE-NEXT: 6 .strtab 00000008
+#BEFORE: .symtab
+#BEFORE-NEXT: .shstrtab
+#BEFORE-NEXT: .strtab
#RUN: ld.lld2 %t.o --strip-all -o %t1
#RUN: llvm-objdump -section-headers %t1 | FileCheck %s -check-prefix AFTER
#AFTER-NOT: .symtab
-#AFTER: 4 .shstrtab 0000001c
+#AFTER: .shstrtab
#AFTER-NOT: .strtab
# Test alias -s
More information about the llvm-commits
mailing list