diff options
| author | Kevin Enderby <enderby@apple.com> | 2018-01-31 00:00:41 +0000 |
|---|---|---|
| committer | Kevin Enderby <enderby@apple.com> | 2018-01-31 00:00:41 +0000 |
| commit | b95a050b983e57d751dfb51f942dbedc7db420ba (patch) | |
| tree | 73d22c4836a2d84a4393c355daba2fe1e2940597 /llvm/test/tools | |
| parent | db6c993faff035b1ffba2330b262d25e79569890 (diff) | |
| download | bcm5719-llvm-b95a050b983e57d751dfb51f942dbedc7db420ba.tar.gz bcm5719-llvm-b95a050b983e57d751dfb51f942dbedc7db420ba.zip | |
llvm-nm should show a symbol type of T for symbols in the (__TEXT_EXEC,__text) section.
When a the Apple link editor builds a kext bundle file type and the
value of the -miphoneos-version-min argument is significantly current
(like 11.0) then the (__TEXT,__text) section is changed to the
(__TEXT_EXEC,__text) section. So it would be nice for llvm-nm to
show symbols in that section with a type of T instead of the generic
type of S for some section other than text, data, etc.
rdar://36262205
llvm-svn: 323836
Diffstat (limited to 'llvm/test/tools')
| -rwxr-xr-x | llvm/test/tools/llvm-nm/AArch64/Inputs/kextbundle.macho-aarch64 | bin | 0 -> 49260 bytes | |||
| -rw-r--r-- | llvm/test/tools/llvm-nm/AArch64/lit.local.cfg | 2 | ||||
| -rw-r--r-- | llvm/test/tools/llvm-nm/AArch64/macho-kextbundle.test | 4 |
3 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-nm/AArch64/Inputs/kextbundle.macho-aarch64 b/llvm/test/tools/llvm-nm/AArch64/Inputs/kextbundle.macho-aarch64 Binary files differnew file mode 100755 index 00000000000..4a21c2e3840 --- /dev/null +++ b/llvm/test/tools/llvm-nm/AArch64/Inputs/kextbundle.macho-aarch64 diff --git a/llvm/test/tools/llvm-nm/AArch64/lit.local.cfg b/llvm/test/tools/llvm-nm/AArch64/lit.local.cfg new file mode 100644 index 00000000000..7184443994b --- /dev/null +++ b/llvm/test/tools/llvm-nm/AArch64/lit.local.cfg @@ -0,0 +1,2 @@ +if not 'AArch64' in config.root.targets: + config.unsupported = True diff --git a/llvm/test/tools/llvm-nm/AArch64/macho-kextbundle.test b/llvm/test/tools/llvm-nm/AArch64/macho-kextbundle.test new file mode 100644 index 00000000000..28c9f249efb --- /dev/null +++ b/llvm/test/tools/llvm-nm/AArch64/macho-kextbundle.test @@ -0,0 +1,4 @@ +RUN: llvm-nm %p/Inputs/kextbundle.macho-aarch64 | FileCheck %s + +CHECK: 0000000000004014 s _bar.stub +CHECK: 0000000000004000 T _foo |

