annotate lld/test/mach-o/function-starts-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 -function_starts && 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_function_starts && llvm-objdump --private-headers %t | FileCheck %s --check-prefix=NO_FUNCTION_STARTS
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 -function_starts -no_function_starts && llvm-objdump --private-headers %t | FileCheck %s --check-prefix=NO_FUNCTION_STARTS
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_FUNCTION_STARTS
150
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 --- !mach-o
anatofuz
parents:
diff changeset
8 arch: x86_64
anatofuz
parents:
diff changeset
9 file-type: MH_OBJECT
anatofuz
parents:
diff changeset
10 flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ]
anatofuz
parents:
diff changeset
11 sections:
anatofuz
parents:
diff changeset
12 - segment: __TEXT
anatofuz
parents:
diff changeset
13 section: __text
anatofuz
parents:
diff changeset
14 type: S_REGULAR
anatofuz
parents:
diff changeset
15 attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ]
anatofuz
parents:
diff changeset
16 address: 0x0000000000000000
anatofuz
parents:
diff changeset
17 content: [ 0x00, 0x00, 0x00, 0x00 ]
anatofuz
parents:
diff changeset
18 global-symbols:
anatofuz
parents:
diff changeset
19 - name: _main
anatofuz
parents:
diff changeset
20 type: N_SECT
anatofuz
parents:
diff changeset
21 scope: [ N_EXT ]
anatofuz
parents:
diff changeset
22 sect: 1
anatofuz
parents:
diff changeset
23 value: 0x0000000000000000
anatofuz
parents:
diff changeset
24 ...
anatofuz
parents:
diff changeset
25
anatofuz
parents:
diff changeset
26 # CHECK: Load command {{[0-9]*}}
anatofuz
parents:
diff changeset
27 # CHECK: cmd LC_FUNCTION_STARTS
anatofuz
parents:
diff changeset
28 # CHECK: cmdsize 16
anatofuz
parents:
diff changeset
29 # CHECK: dataoff
anatofuz
parents:
diff changeset
30 # CHECK: datasize
anatofuz
parents:
diff changeset
31
anatofuz
parents:
diff changeset
32 # NO_FUNCTION_STARTS-NOT: LC_FUNCTION_STARTS