1# Check that relocations get applied 2RUN: llvm-dwarfdump %p/Inputs/test-simple-macho.o | FileCheck %s 3RUN: llvm-dwarfdump %p/Inputs/test-multiple-macho.o | FileCheck %s 4RUN: llvm-rtdyld -printline %p/Inputs/test-multiple-macho.o | FileCheck %s 5RUN: llvm-rtdyld -printobjline %p/Inputs/test-multiple-macho.o | FileCheck %s 6 7CHECK-NOT: error: failed to compute relocation: X86_64_RELOC_UNSIGNED 8 9# Check that relocations get applied correctly 10RUN: llvm-rtdyld -printobjline %p/Inputs/test-simple-macho.o \ 11RUN: | FileCheck %s -check-prefix TEST_SIMPLE 12RUN: llvm-rtdyld -printline %p/Inputs/test-simple-macho.o \ 13RUN: | FileCheck %s -check-prefix TEST_SIMPLE 14RUN: llvm-rtdyld -printobjline %p/Inputs/test-multiple-macho.o \ 15RUN: | FileCheck %s -check-prefix TEST_MULTIPLE 16RUN: llvm-rtdyld -printline %p/Inputs/test-multiple-macho.o \ 17RUN: | FileCheck %s -check-prefix TEST_MULTIPLE 18 19TEST_SIMPLE: Function: _foo, Size = 11 20TEST_SIMPLE-NEXT: Line info @ 0: simple.c, line:1 21TEST_SIMPLE-NEXT: Line info @ 7: simple.c, line:2 22TEST_SIMPLE-NOT: Line info @ 11: simple.c, line:2 23 24TEST_MULTIPLE: Function: _bar, Size = 48 25TEST_MULTIPLE-NEXT: Line info @ 0: multiple.c, line:5 26TEST_MULTIPLE-NEXT: Line info @ 7: multiple.c, line:6 27TEST_MULTIPLE-NEXT: Line info @ 16: multiple.c, line:9 28TEST_MULTIPLE-NEXT: Line info @ 21: multiple.c, line:9 29TEST_MULTIPLE-NEXT: Line info @ 26: multiple.c, line:7 30TEST_MULTIPLE-NEXT: Line info @ 33: multiple.c, line:10 31TEST_MULTIPLE-NOT: Line info @ 48: multiple.c, line:12 32TEST_MULTIPLE-NEXT: Function: _foo, Size = 16 33TEST_MULTIPLE-NEXT: Line info @ 0: multiple.c, line:1 34TEST_MULTIPLE-NEXT: Line info @ 7: multiple.c, line:2 35TEST_MULTIPLE-NOT: Line info @ 16: multiple.c, line:5 36TEST_MULTIPLE-NEXT: Function: _fubar, Size = 46 37TEST_MULTIPLE-NEXT: Line info @ 0: multiple.c, line:12 38TEST_MULTIPLE-NEXT: Line info @ 7: multiple.c, line:13 39TEST_MULTIPLE-NEXT: Line info @ 12: multiple.c, line:17 40TEST_MULTIPLE-NEXT: Line info @ 25: multiple.c, line:15 41TEST_MULTIPLE-NEXT: Line info @ 34: multiple.c, line:19 42TEST_MULTIPLE-NEXT: Line info @ 41: multiple.c, line:21 43TEST_MULTIPLE-NOT: Line info @ 46: multiple.c, line:21 44