2 ## FIXME: This yaml is from an object file produced with 'ld -r':
4 ## echo "int main() {return 1;}" > test.c
5 ## clang -c -g -o test.o test.c
6 ## ld -r -o test2.o test.o -no_data_in_code_info
8 ## Replace this with "normal" .s test format once lld supports `-r`
10 # RUN: yaml2obj %s -o %t.o
11 # RUN: %lld -lSystem -arch x86_64 %t.o -o %t
48 content
: 554889E5C745FC00000000B8010000005DC3
49 - sectname
: __compact_unwind
61 content
: '0000000000000000120000000000000100000000000000000000000000000000'
77 - cmd
: LC_BUILD_VERSION
89 n_type
: 0x64 ## N_SO STAB
94 n_type
: 0x64 ## N_SO STAB
99 n_type
: 0x66 ## N_OSO STAB
104 n_type
: 0x2E ## N_BNSYM STAB
109 n_type
: 0x24 ## N_FUN STAB
114 n_type
: 0x24 ## N_FUN STAB
119 n_type
: 0x4E ## N_ENSYM STAB
124 n_type
: 0x64 ## N_SO STAB
138 - '/private/tmp/test.o'