[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / ppc64-error-missaligned-dq.s
blobbb7974defa834c91461573ab534ad749e9394020
1 # REQUIRES: ppc
3 # RUN: llvm-mc -filetype=obj -triple=powerpc64le-unknown-linux %s -o %t.o
4 # RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
6 # RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o
7 # RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
9 # CHECK: improper alignment for relocation R_PPC64_TOC16_LO_DS: 0x8009 is not aligned to 16 bytes
11 .global test
12 .p2align 4
13 .type test,@function
14 test:
15 .Lgep:
16 addis 2, 12, .TOC.-.Lgep@ha
17 addi 2, 2, .TOC.-.Lgep@l
18 .Llep:
19 .localentry test, .Llep-.Lgep
20 addis 3, 2, qword@toc@ha
21 lxv 3, qword@toc@l(3)
22 blr
24 .data
25 .p2align 4
26 pad:
27 .byte 1
28 qword:
29 .quad 0