From: Davide Italiano Date: Wed, 26 Jul 2017 20:40:33 +0000 (+0000) Subject: [gold] Relax tests to account for difference in layout across versions. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6863e2373801ca9ee20a5ce56120c58a7c7cebb;p=llvm [gold] Relax tests to account for difference in layout across versions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309174 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/tools/gold/X86/multiple-data.s b/test/tools/gold/X86/multiple-data.s index 991554b4f0d..e46d964c289 100644 --- a/test/tools/gold/X86/multiple-data.s +++ b/test/tools/gold/X86/multiple-data.s @@ -9,17 +9,9 @@ # RUN: --section-ordering-file=%t_order_lto.txt # RUN: llvm-readobj -elf-output-style=GNU -t %t.exe | FileCheck %s -# CHECK: Symbol table '.symtab' contains 9 entries: -# CHECK-NEXT: Num: Value Size Type Bind Vis Ndx Name -# CHECK-NEXT: 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND -# CHECK-NEXT: 1: 0000000000000000 0 FILE LOCAL DEFAULT ABS ld-temp.o -# CHECK-NEXT: 2: 0000000000401104 0 NOTYPE GLOBAL DEFAULT ABS _end -# CHECK-NEXT: 3: 0000000000401104 0 NOTYPE GLOBAL DEFAULT ABS __bss_start -# CHECK-NEXT: 4: 0000000000401104 0 NOTYPE GLOBAL DEFAULT ABS _edata -# CHECK-NEXT: 5: 00000000004000e8 0 NOTYPE GLOBAL DEFAULT 1 _start -# CHECK-NEXT: 6: 00000000004010fc 4 OBJECT GLOBAL DEFAULT 2 dipsy -# CHECK-NEXT: 7: 00000000004010f8 4 OBJECT GLOBAL DEFAULT 2 tin -# CHECK-NEXT: 8: 0000000000401100 4 OBJECT GLOBAL DEFAULT 2 pat +# CHECK: 00000000004010fc 4 OBJECT GLOBAL DEFAULT 2 dipsy +# CHECK: 00000000004010f8 4 OBJECT GLOBAL DEFAULT 2 tin +# CHECK: 0000000000401100 4 OBJECT GLOBAL DEFAULT 2 pat .globl _start _start: diff --git a/test/tools/gold/X86/multiple-sections.ll b/test/tools/gold/X86/multiple-sections.ll index 899de0cb810..fbc1c7e93dc 100644 --- a/test/tools/gold/X86/multiple-sections.ll +++ b/test/tools/gold/X86/multiple-sections.ll @@ -9,16 +9,9 @@ ; Check that the order of the sections is tin -> _start -> pat. -; CHECK: Symbol table '.symtab' contains 8 entries: -; CHECK-NEXT: Num: Value Size Type Bind Vis Ndx Name -; CHECK-NEXT: 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND -; CHECK-NEXT: 1: 0000000000000000 0 FILE LOCAL DEFAULT ABS ld-temp.o -; CHECK-NEXT: 2: 00000000004000d0 1 FUNC LOCAL DEFAULT 1 pat -; CHECK-NEXT: 3: 00000000004000b0 1 FUNC LOCAL DEFAULT 1 tin -; CHECK-NEXT: 4: 0000000000000000 0 NOTYPE GLOBAL DEFAULT ABS _end -; CHECK-NEXT: 5: 0000000000000000 0 NOTYPE GLOBAL DEFAULT ABS __bss_start -; CHECK-NEXT: 6: 0000000000000000 0 NOTYPE GLOBAL DEFAULT ABS _edata -; CHECK-NEXT: 7: 00000000004000c0 15 FUNC GLOBAL DEFAULT 1 _start +; CHECK: 00000000004000d0 1 FUNC LOCAL DEFAULT 1 pat +; CHECK: 00000000004000b0 1 FUNC LOCAL DEFAULT 1 tin +; CHECK: 00000000004000c0 15 FUNC GLOBAL DEFAULT 1 _start target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu"