brintos

brintos / llvm-project-archived public Read only

0
0
Text · 956 B · 260a049 Raw
32 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o3 4# RUN: %lld -lSystem %t.o -o %t5# RUN: llvm-objdump -d --no-show-raw-insn %t | FileCheck %s6# CHECK:      leaq {{.*}} ## 0x1000000007# CHECK-NEXT: leaq {{.*}} ## 0x1000000008 9# RUN: %lld -dylib %t.o -o %t.dylib10# RUN: llvm-objdump -d --no-show-raw-insn --rebase --section-headers %t.dylib | FileCheck %s --check-prefix=DYLIB-CHECK11# DYLIB-CHECK:      leaq {{.*}} ## 0x012# DYLIB-CHECK-NEXT: leaq {{.*}} ## 0x013 14# DYLIB-LABEL: Sections:15# DYLIB:       __data        00000008 [[#%x,DATA:]] DATA16# DYLIB-LABEL: Rebase table:17# DYLIB-NEXT:  segment  section  address            type18# DYLIB-NEXT:  __DATA   __data   0x{{0*}}[[#DATA]]  pointer19 20# RUN: llvm-objdump --syms %t.dylib | FileCheck %s --check-prefix=SYMS21# SYMS-NOT: ___dso_handle22 23.globl _main24.text25_main:26  leaq ___dso_handle(%rip), %rdx27  movq ___dso_handle@GOTPCREL(%rip), %rdx28  ret29 30.data31.quad ___dso_handle32