llvm.org GIT mirror llvm / b6863e2
[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 Davide Italiano 2 years ago
2 changed file(s) with 6 addition(s) and 21 deletion(s). Raw diff Collapse all Expand all
88 # RUN: --section-ordering-file=%t_order_lto.txt
99 # RUN: llvm-readobj -elf-output-style=GNU -t %t.exe | FileCheck %s
1010
11 # CHECK: Symbol table '.symtab' contains 9 entries:
12 # CHECK-NEXT: Num: Value Size Type Bind Vis Ndx Name
13 # CHECK-NEXT: 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
14 # CHECK-NEXT: 1: 0000000000000000 0 FILE LOCAL DEFAULT ABS ld-temp.o
15 # CHECK-NEXT: 2: 0000000000401104 0 NOTYPE GLOBAL DEFAULT ABS _end
16 # CHECK-NEXT: 3: 0000000000401104 0 NOTYPE GLOBAL DEFAULT ABS __bss_start
17 # CHECK-NEXT: 4: 0000000000401104 0 NOTYPE GLOBAL DEFAULT ABS _edata
18 # CHECK-NEXT: 5: 00000000004000e8 0 NOTYPE GLOBAL DEFAULT 1 _start
19 # CHECK-NEXT: 6: 00000000004010fc 4 OBJECT GLOBAL DEFAULT 2 dipsy
20 # CHECK-NEXT: 7: 00000000004010f8 4 OBJECT GLOBAL DEFAULT 2 tin
21 # CHECK-NEXT: 8: 0000000000401100 4 OBJECT GLOBAL DEFAULT 2 pat
11 # CHECK: 00000000004010fc 4 OBJECT GLOBAL DEFAULT 2 dipsy
12 # CHECK: 00000000004010f8 4 OBJECT GLOBAL DEFAULT 2 tin
13 # CHECK: 0000000000401100 4 OBJECT GLOBAL DEFAULT 2 pat
2214
2315 .globl _start
2416 _start:
88
99 ; Check that the order of the sections is tin -> _start -> pat.
1010
11 ; CHECK: Symbol table '.symtab' contains 8 entries:
12 ; CHECK-NEXT: Num: Value Size Type Bind Vis Ndx Name
13 ; CHECK-NEXT: 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
14 ; CHECK-NEXT: 1: 0000000000000000 0 FILE LOCAL DEFAULT ABS ld-temp.o
15 ; CHECK-NEXT: 2: 00000000004000d0 1 FUNC LOCAL DEFAULT 1 pat
16 ; CHECK-NEXT: 3: 00000000004000b0 1 FUNC LOCAL DEFAULT 1 tin
17 ; CHECK-NEXT: 4: 0000000000000000 0 NOTYPE GLOBAL DEFAULT ABS _end
18 ; CHECK-NEXT: 5: 0000000000000000 0 NOTYPE GLOBAL DEFAULT ABS __bss_start
19 ; CHECK-NEXT: 6: 0000000000000000 0 NOTYPE GLOBAL DEFAULT ABS _edata
20 ; CHECK-NEXT: 7: 00000000004000c0 15 FUNC GLOBAL DEFAULT 1 _start
11 ; CHECK: 00000000004000d0 1 FUNC LOCAL DEFAULT 1 pat
12 ; CHECK: 00000000004000b0 1 FUNC LOCAL DEFAULT 1 tin
13 ; CHECK: 00000000004000c0 15 FUNC GLOBAL DEFAULT 1 _start
2114
2215 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
2316 target triple = "x86_64-unknown-linux-gnu"