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
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-readelf -s %t.exe | FileCheck %s
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