annotate lld/test/mach-o/data-in-code-load-command.yaml @ 192:d7606dcf6fce

Added tag llvm10 for changeset 0572611fdcc8
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 14 Dec 2020 18:01:34 +0900
parents 0572611fdcc8
children 2e18cbf3894f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1 # RUN: ld64.lld -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml && llvm-objdump --private-headers %t | FileCheck %s
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
2 # RUN: ld64.lld -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -static -data_in_code_info && llvm-objdump --private-headers %t | FileCheck %s
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
3 # RUN: ld64.lld -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -no_data_in_code_info && llvm-objdump --private-headers %t | FileCheck %s --check-prefix=NO_DATA_IN_CODE_INFO
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
4 # RUN: ld64.lld -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -static -data_in_code_info -no_data_in_code_info && llvm-objdump --private-headers %t | FileCheck %s --check-prefix=NO_DATA_IN_CODE_INFO
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
5 # RUN: ld64.lld -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -static && llvm-objdump --private-headers %t | FileCheck %s --check-prefix=NO_DATA_IN_CODE_INFO
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
6 # RUN: ld64.lld -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -r && llvm-objdump --private-headers %t | FileCheck %s
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
7 # RUN: ld64.lld -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -r -data_in_code_info && llvm-objdump --private-headers %t | FileCheck %s
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
8 # RUN: ld64.lld -arch x86_64 -macosx_version_min 10.8 %s -o %t -dylib %p/Inputs/x86_64/libSystem.yaml -r -no_data_in_code_info && llvm-objdump --private-headers %t | FileCheck %s --check-prefix=NO_DATA_IN_CODE_INFO
150
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 --- !mach-o
anatofuz
parents:
diff changeset
11 arch: x86_64
anatofuz
parents:
diff changeset
12 file-type: MH_OBJECT
anatofuz
parents:
diff changeset
13 flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ]
anatofuz
parents:
diff changeset
14 sections:
anatofuz
parents:
diff changeset
15 - segment: __TEXT
anatofuz
parents:
diff changeset
16 section: __text
anatofuz
parents:
diff changeset
17 type: S_REGULAR
anatofuz
parents:
diff changeset
18 attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ]
anatofuz
parents:
diff changeset
19 address: 0x0000000000000000
anatofuz
parents:
diff changeset
20 content: [ 0x00, 0x00, 0x00, 0x00 ]
anatofuz
parents:
diff changeset
21 global-symbols:
anatofuz
parents:
diff changeset
22 - name: _main
anatofuz
parents:
diff changeset
23 type: N_SECT
anatofuz
parents:
diff changeset
24 scope: [ N_EXT ]
anatofuz
parents:
diff changeset
25 sect: 1
anatofuz
parents:
diff changeset
26 value: 0x0000000000000000
anatofuz
parents:
diff changeset
27 ...
anatofuz
parents:
diff changeset
28
anatofuz
parents:
diff changeset
29 # CHECK: Load command {{[0-9]*}}
anatofuz
parents:
diff changeset
30 # CHECK: cmd LC_DATA_IN_CODE
anatofuz
parents:
diff changeset
31 # CHECK: cmdsize 16
anatofuz
parents:
diff changeset
32 # CHECK: dataoff
anatofuz
parents:
diff changeset
33 # CHECK: datasize
anatofuz
parents:
diff changeset
34
anatofuz
parents:
diff changeset
35 # NO_DATA_IN_CODE_INFO-NOT: LC_DATA_IN_CODE