Home | History | Annotate | Download | only in X86
      1 # RUN: echo ".data.tin" > %t_order_lto.txt
      2 # RUN: echo ".data.dipsy" >> %t_order_lto.txt
      3 # RUN: echo ".data.pat" >> %t_order_lto.txt
      4 
      5 # RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-unknown-linux-gnu
      6 # RUN: llvm-as %p/Inputs/multiple-data.ll -o %t2.o
      7 # 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.txt
     10 # RUN: llvm-readobj -elf-output-style=GNU -t %t.exe | FileCheck %s
     11 
     12 # CHECK-DAG:      00000000004010fc     4 OBJECT  GLOBAL DEFAULT    2 dipsy
     13 # CHECK-DAG:      00000000004010f8     4 OBJECT  GLOBAL DEFAULT    2 tin
     14 # CHECK-DAG:      0000000000401100     4 OBJECT  GLOBAL DEFAULT    2 pat
     15 
     16 .globl _start
     17 _start:
     18   movl $pat, %ecx
     19   movl $dipsy, %ebx
     20   movl $tin, %eax
     21