3 # RUN: llvm-mc -filetype=obj -triple=powerpc64-pc-freebsd13.0 %s -o %t.o
4 # RUN: ld.lld %t.o -o %t
5 # RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s
7 ## .init consists of sections from several object files. Sections other than the
8 ## last one do not have a terminator. Check we do not create a long branch stub
10 ## We currently use thunk section spacing to ensure the stub is in the end. This
11 ## is not foolproof but good enough to not break in practice.
13 # CHECK: Disassembly of section .init:
15 # CHECK-LABEL: <_init>:
20 # CHECK-LABEL: <__long_branch_foo>:
27 .section .init,"ax",@progbits,unique,0
34 .section .init,"ax",@progbits,unique,1
38 .section .init,"ax",@progbits,unique,2
42 .section .init,"ax",@progbits,unique,3