Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / gold / X86 / multiple-data.s
blob2a12e69c00fe7816a7a1e210f441dd59a4bb3b73
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
16 .globl _start
17 _start:
18 movl $pat, %ecx
19 movl $dipsy, %ebx
20 movl $tin, %eax