22 lines · plain
1# REQUIRES: aarch642# RUN: rm -rf %t; mkdir -p %t3 4# RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %s -o %t/test.o5# RUN: not %lld -arch arm64 %t/test.o -o /dev/null 2>&1 | FileCheck %s6 7# CHECK: error: {{.*}}test.o: linker optimization hint spans multiple sections8 9.globl _main10_main:11L1:12 adrp x0, _target@PAGE13 14_foo:15L2:16 add x0, x0, _target@PAGEOFF17 18_target:19 20.loh AdrpAdd L1, L221.subsections_via_symbols22