brintos

brintos / llvm-project-archived public Read only

0
0
Text · 866 B · 575fb81 Raw
38 lines · plain
1; RUN: split-file %s %t2; RUN: llvm-as %t/a.ll -o %t.o3; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \4; RUN:     -m elf_x86_64 -o %t.exe %t.o \5; RUN:     --section-ordering-file=%t/order6; RUN: llvm-readelf -s %t.exe | FileCheck %s7 8; Check that the order of the sections is tin -> _start -> pat.9 10; CHECK:      00000000004000d0     1 FUNC    LOCAL  DEFAULT    1 pat11; CHECK:      00000000004000b0     1 FUNC    LOCAL  DEFAULT    1 tin12; CHECK:      00000000004000c0    15 FUNC    GLOBAL DEFAULT    1 _start13 14;--- order15.text.tin16.text._start17.text.pat18 19;--- a.ll20target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"21target triple = "x86_64-unknown-linux-gnu"22 23define void @pat() #0 {24  ret void25}26 27define void @tin() #0 {28  ret void29}30 31define i32 @_start() {32  call void @pat()33  call void @tin()34  ret i32 035}36 37attributes #0 = { noinline optnone }38