From b95a050b983e57d751dfb51f942dbedc7db420ba Mon Sep 17 00:00:00 2001 From: Kevin Enderby Date: Wed, 31 Jan 2018 00:00:41 +0000 Subject: [PATCH] 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 --- .../AArch64/Inputs/kextbundle.macho-aarch64 | Bin 0 -> 49260 bytes llvm/test/tools/llvm-nm/AArch64/lit.local.cfg | 2 ++ .../tools/llvm-nm/AArch64/macho-kextbundle.test | 4 ++++ llvm/tools/llvm-nm/llvm-nm.cpp | 4 ++++ 4 files changed, 10 insertions(+) create mode 100755 llvm/test/tools/llvm-nm/AArch64/Inputs/kextbundle.macho-aarch64 create mode 100644 llvm/test/tools/llvm-nm/AArch64/lit.local.cfg create mode 100644 llvm/test/tools/llvm-nm/AArch64/macho-kextbundle.test diff --git a/llvm/test/tools/llvm-nm/AArch64/Inputs/kextbundle.macho-aarch64 b/llvm/test/tools/llvm-nm/AArch64/Inputs/kextbundle.macho-aarch64 new file mode 100755 index 0000000000000000000000000000000000000000..4a21c2e38408360e4ed049db7c8d7a9c3cb59bf3 GIT binary patch literal 49260 zcmeI(v1$}S7y#hey~IQen&Lo3h}IUG!Ux!p93&_);1%f>18NhvU@jn}FbMXF7CwSj z`UW|lz%DOfV`FEdkl@ViZgL!6V;A@a{{8o#nf2w8~ZQjCi+zT_di zP7`rlkFgq~EW4e}Zkibz#lP#+aM-k7PJMpFsQQ$h&CYVQQdB8S$kTB-MSP{F;%8PIdb2Y{W>Tc_!twzd2J{8y_2kYJIiN&H9aa zllp%Db+>r;`QFaq;?