[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / cgprofile-shared-warn.s
blob86312770d1d7323c6c7f9af35e1e2c2c11dc9279
1 # REQUIRES: x86
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
4 # RUN: ld.lld --shared %t.o -o /dev/null 2>&1 | count 0
5 # RUN: ld.lld -e A --unresolved-symbols=ignore-all %t.o -o /dev/null 2>&1 | count 0
7 # RUN: echo '.globl B; B: ret' | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t1.o
8 # RUN: ld.lld --shared %t1.o -o %t1.so
9 # RUN: ld.lld -e A %t.o %t1.so -o /dev/null 2>&1 | count 0
11 # RUN: ld.lld --gc-sections %t.o %t1.so -o /dev/null 2>&1 | count 0
12 .globl _start
13 _start:
14 ret
16 .section .text.A,"ax",@progbits
17 .globl A
19 callq B
21 .cg_profile A, B, 10