1 // Verify relocations for temporary labels are referenced by real symbols
2 // at the same address.
4 // RUN
: llvm-mc
-triple x86_64-apple-darwin
-filetype
=obj
-o
- %s | llvm-objdump
-r
- | FileCheck
%s
7 .section __TEXT,__text_cold,regular,pure_instructions
11 .section __TEXT,__text_cold,regular,pure_instructions
33 // CHECK
: 0000000000000038 X86_64_RELOC_SUBTRACTOR _function1-__data
34 // CHECK
: 0000000000000038 X86_64_RELOC_UNSIGNED _function1
35 // CHECK
: 0000000000000030 X86_64_RELOC_SUBTRACTOR _function1-__data
36 // CHECK
: 0000000000000030 X86_64_RELOC_UNSIGNED _function1
37 // CHECK
: 0000000000000028 X86_64_RELOC_SUBTRACTOR _function2-__data
38 // CHECK
: 0000000000000028 X86_64_RELOC_UNSIGNED _function2
39 // CHECK
: 0000000000000020 X86_64_RELOC_SUBTRACTOR _function2-__data
40 // CHECK
: 0000000000000020 X86_64_RELOC_UNSIGNED _function2
41 // CHECK
: 0000000000000018 X86_64_RELOC_SUBTRACTOR _function2-__data
42 // CHECK
: 0000000000000018 X86_64_RELOC_UNSIGNED _function2
43 // CHECK
: 0000000000000010 X86_64_RELOC_SUBTRACTOR _function1-__data
44 // CHECK
: 0000000000000010 X86_64_RELOC_UNSIGNED _function1
45 // CHECK
: 0000000000000008 X86_64_RELOC_SUBTRACTOR _function2-__data
46 // CHECK
: 0000000000000008 X86_64_RELOC_UNSIGNED _function2
47 // CHECK
: 0000000000000000 X86_64_RELOC_SUBTRACTOR _function1-__data
48 // CHECK
: 0000000000000000 X86_64_RELOC_UNSIGNED _function1