-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[llvm][llvm-nm] add TextAPI/MachO support
Summary: This completes the needed glueing to support reading tbd files from nm. This includes specifying which slice filtering with `--arch` and a new option specifically for tbd files `--add-inlinedinfo` which will show the reexported libraries that are appended in the tbd file. Reviewers: ributzka, steven_wu, JDevlieghere, jhenderson Reviewed By: JDevlieghere Subscribers: hiraditya, MaskRay, dexonsmith, rupprecht, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D81614
- Loading branch information
1 parent
519b019
commit 28fefcc
Showing
19 changed files
with
352 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- !tapi-tbd-v1 | ||
|
||
archs: [ armv7, armv7s, arm64 ] | ||
|
||
platform: ios | ||
install-name: /u/l/libfoo.dylib | ||
current-version: 1.2.3 | ||
compatibility-version: 1.0 | ||
swift-version: 0 | ||
objc-constraint: none | ||
expors: | ||
- archs: [ arm64, armv7 ] | ||
allowed-clients: [ client ] | ||
symbols: [ _sym, _test, _a, _b, ] | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- !tapi-tbd-v2 | ||
uuids: [ "armv7: 00000000-0000-0000-0000-000000000000", | ||
"armv7s: 11111111-1111-1111-1111-111111111111", | ||
"arm64: 22222222-2222-2222-2222-222222222222" ] | ||
platform: ios | ||
flags: [ installapi ] | ||
install-name: /u/l/libfoo.dylib | ||
current-version: 1.2.3 | ||
compatibility-version: 1.0 | ||
swift-version: 0 | ||
objc-constraint: retain_release | ||
parent-umbrella: Umbrella.dylib | ||
exports: | ||
- archs: [ armv7, armv7s, arm64 ] | ||
allowable-clients: [ client ] | ||
re-exports: [ ] | ||
symbols: [ _sym1, _sym2, _sym3 ] | ||
undefineds: | ||
- archs: [ arm64 ] | ||
symbols: [ _sym ] | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- !tapi-tbd-v3 | ||
archs: [ i386, armv7, armv7s ] | ||
platform: ios | ||
install-name: /usr/lib/libfoo.dylib | ||
swift-abi-version: 3 | ||
exports: | ||
- archs: [ i386, armv7, armv7s ] | ||
re-exports: [ /usr/lib/external/liba.dylib ] | ||
symbols: [ _sym1, _sym2 ] | ||
objc-classes: [ NSString, NSBlockPredicate ] | ||
objc-eh-types: [ NSString ] | ||
objc-ivars: [ NSBlockPredicate._block ] | ||
- archs: [ i386 ] | ||
symbols: [ _sym3 ] | ||
--- !tapi-tbd-v3 | ||
archs: [ armv7, armv7s ] | ||
platform: ios | ||
install-name: /usr/lib/liba.dylib | ||
swift-version: 3 | ||
exports: | ||
- archs: [ armv7, armv7s ] | ||
symbols: [ _sym10, _sym11 ] | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- !tapi-tbd-v1 | ||
|
||
archs: [ armv7, armv7s ] | ||
|
||
platform: ios | ||
install-name: /u/l/libfoo.dylib | ||
current-version: 1.2.3 | ||
compatibility-version: 1.0 | ||
swift-version: 0 | ||
objc-constraint: none | ||
exports: | ||
- archs: [ armv7, armv7s ] | ||
allowed-clients: [ client ] | ||
symbols: [ _sym, ] | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- !tapi-tbd-v2 | ||
archs: [ armv7, armv7s, arm64 ] | ||
uuids: [ "armv7: 00000000-0000-0000-0000-000000000000", | ||
"armv7s: 11111111-1111-1111-1111-111111111111", | ||
"arm64: 22222222-2222-2222-2222-222222222222" ] | ||
platform: ios | ||
flags: [ installapi, flat_namespace ] | ||
install-name: /u/l/libfoo.dylib | ||
current-version: 1.2.3 | ||
compatibility-version: 1.0 | ||
swift-version: 0 | ||
objc-constraint: retain_release | ||
parent-umbrella: Umbrella.dylib | ||
exports: | ||
- archs: [ armv7, armv7s, arm64 ] | ||
symbols: [ _sym1, _sym2, _sym3 ] | ||
|
||
undefineds: | ||
- archs: [ arm64 ] | ||
symbols: [ _sym ] | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- !tapi-tbd-v3 | ||
archs: [ i386, x86_64 ] | ||
platform: ios | ||
install-name: /usr/lib/libfoo.dylib | ||
swift-abi-version: 3 | ||
exports: | ||
- archs: [ i386, x86_64 ] | ||
re-exports: [ /usr/lib/external/liba.dylib ] | ||
symbols: [ _sym1, _sym2 ] | ||
objc-classes: [ NSString, NSBlockPredicate ] | ||
objc-eh-types: [ NSString ] | ||
objc-ivars: [ NSBlockPredicate._block ] | ||
- archs: [ i386 ] | ||
symbols: [ _sym3 ] | ||
--- !tapi-tbd-v3 | ||
archs: [ x86_64 ] | ||
platform: ios | ||
install-name: /usr/lib/liba.dylib | ||
swift-abi-version: 3 | ||
parent-umbrella: foo | ||
exports: | ||
- archs: [ x86_64 ] | ||
symbols: [ _sym10, _sym11 ] | ||
... |
Oops, something went wrong.