brintos

brintos / llvm-project-archived public Read only

0
0
Text · 760 B · 2a12e69 Raw
21 lines · plain
1# RUN: echo ".data.tin" > %t_order_lto.txt2# RUN: echo ".data.dipsy" >> %t_order_lto.txt3# RUN: echo ".data.pat" >> %t_order_lto.txt4 5# RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-unknown-linux-gnu6# RUN: llvm-as %p/Inputs/multiple-data.ll -o %t2.o7# RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \8# RUN:     -m elf_x86_64 -o %t.exe %t2.o %t.o  \9# RUN:     --section-ordering-file=%t_order_lto.txt10# RUN: llvm-readelf -s %t.exe | FileCheck %s11 12# CHECK-DAG:      00000000004010fc     4 OBJECT  GLOBAL DEFAULT    2 dipsy13# CHECK-DAG:      00000000004010f8     4 OBJECT  GLOBAL DEFAULT    2 tin14# CHECK-DAG:      0000000000401100     4 OBJECT  GLOBAL DEFAULT    2 pat15 16.globl _start17_start:18  movl $pat, %ecx19  movl $dipsy, %ebx20  movl $tin, %eax21