brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · a3c11e6 Raw
32 lines · plain
1RUN: llvm-objdump --macho --dyld-info %p/Inputs/chained-fixups.macho-x86_64 | \2RUN:     FileCheck -DNAME=%p/Inputs/chained-fixups.macho-x86_64 %s3RUN: llvm-otool -dyld_info %p/Inputs/chained-fixups.macho-x86_64 | \4RUN:     FileCheck -DNAME=%p/Inputs/chained-fixups.macho-x86_64 %s5 6## See chained-fixups.test for how the test input was generated.7CHECK:      [[NAME]]:8CHECK-NEXT: dyld information:9CHECK-NEXT: segment      section address       pointer      type   addend dylib          symbol/vm address10CHECK-NEXT: __DATA_CONST __const 0x3E0   0x8010000000000001 bind   0x0    libdylib       _weakImport (weak import)11CHECK-NEXT: __DATA_CONST __const 0x3E8   0x8000000000000000 bind   0x0    flat-namespace _dynamicLookup12CHECK-NEXT: __DATA       __data  0x3F0   0x00200000000003F0 rebase                       0x3F013CHECK-NEXT: __DATA       __data  0x400   0x8000000000000004 bind   0x0     weak          _weak14CHECK-NEXT: __DATA       __data  0x1410  0x8000000000000003 bind   0x0     weak          _weakLocal15CHECK-NEXT: __DATA       __data  0x3410  0x8010000000000002 bind   0x0     libdylib      _dylib16CHECK-NEXT: __DATA       __data  0x3418  0x800000002A000002 bind   0x2A    libdylib      _dylib17 18 19## TODO: Print opcode-based fixups/binds as well20## For now, test that execution doesn't fail if the input uses those.21RUN: llvm-objdump --macho --dyld-info %p/Inputs/bind.macho-x86_6422RUN: llvm-objdump --macho --dyld-info %p/Inputs/bind.macho-x86_6423 24 25## If both -chained_fixups and -dyld_info are passed, otool prints dyld_info26## output first. Match that.27RUN: llvm-otool -chained_fixups -dyld_info \28RUN:     %p/Inputs/chained-fixups.macho-x86_64 | \29RUN:     FileCheck --check-prefix=BOTH %s30BOTH: dyld information:31BOTH: chained fixups header32