OSDN Git Service

llvm-nm should show a symbol type of T for symbols in the (__TEXT_EXEC,__text) section.
authorKevin Enderby <enderby@apple.com>
Wed, 31 Jan 2018 00:00:41 +0000 (00:00 +0000)
committerKevin Enderby <enderby@apple.com>
Wed, 31 Jan 2018 00:00:41 +0000 (00:00 +0000)
commit5ee8d5edce8f1613a73f16200136b6c751db34b5
tree1877872bf0a870d6279b7288c312e8065bfe9eb6
parent90018a5eacfcdab375e69990c577570c702f29cd
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@323836 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-nm/AArch64/Inputs/kextbundle.macho-aarch64 [new file with mode: 0755]
test/tools/llvm-nm/AArch64/lit.local.cfg [new file with mode: 0644]
test/tools/llvm-nm/AArch64/macho-kextbundle.test [new file with mode: 0644]
tools/llvm-nm/llvm-nm.cpp