1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin19.0.0 %s -o %t.o 3# RUN: %lld -pie -lSystem %t.o -o %t 4# RUN: llvm-objdump --macho --unwind-info --rebase %t | FileCheck %s 5 6## Check that we do not add rebase opcodes to the compact unwind section. 7# CHECK: Contents of __unwind_info section: 8# CHECK-NEXT: Version: 0x1 9# CHECK-NEXT: Common encodings array section offset: 10# CHECK-NEXT: Number of common encodings in array: 0x1 11# CHECK: Rebase table: 12# CHECK-NEXT: segment section address type 13# CHECK-EMPTY: 14 15.globl _main 16.text 17_main: 18 .cfi_startproc 19 .cfi_def_cfa_offset 16 20 retq 21 .cfi_endproc 22