brintos

brintos / llvm-project-archived public Read only

0
0
Text · 815 B · fc4af21 Raw
25 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o3# RUN: %lld -dylib -fixup_chains -o %t %t.o4# RUN: llvm-objdump --macho --all-headers %t | FileCheck %s5 6## dyld always expects LC_DYLD_CHAINED_FIXUPS to point to a valid7## chained fixups header, even if there aren't any fixups.8# CHECK:            cmd LC_DYLD_CHAINED_FIXUPS9# CHECK-NEXT:   cmdsize 1610# CHECK-NEXT:   dataoff [[#]]11# CHECK-NEXT:  datasize 4812 13## While ld64 emits the root trie node even if there are no exports,14## setting the data size and offset to zero works too in practice.15# CHECK:            cmd LC_DYLD_EXPORTS_TRIE16# CHECK-NEXT:   cmdsize 1617# CHECK-NEXT:   dataoff 018# CHECK-NEXT:  datasize 019 20## Old load commands should not be generated.21# CHECK-NOT: cmd LC_DYLD_INFO_ONLY22 23_not_exported:24  .space 125