forked from grobian/darwin-xtools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,260 changed files
with
104,617 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build | ||
DerivedData |
Large diffs are not rendered by default.
Oops, something went wrong.
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,51 @@ | ||
#!/bin/csh | ||
|
||
# Attempt to find the architecture. | ||
# First look through the command line args. | ||
set arch=unknown | ||
set link_cmd=(`cat link_command`) | ||
while ( $#link_cmd > 0 ) | ||
if ( "$link_cmd[1]" == "-arch" ) then | ||
set arch=$link_cmd[2] | ||
endif | ||
shift link_cmd | ||
end | ||
|
||
# look for an explicit arch file | ||
if ( "$arch" == "unknown" ) then | ||
if ( -e arch ) then | ||
set arch=`cat arch` | ||
endif | ||
endif | ||
|
||
if ( "$arch" == "unknown" ) then | ||
echo "***** Unable to determine architecture." | ||
exit 1 | ||
endif | ||
|
||
# Create .dylibs for each file in the dylib_stubs directory. | ||
if ( -e dylib_stubs ) then | ||
set files=`cd dylib_stubs ; echo *` | ||
mkdir -p dylibs | ||
foreach file ($files) | ||
if ( ! -e dylibs/$file ) then | ||
clang -arch $arch -c -fno-builtin -o tmp_object.o -x c dylib_stubs/$file | ||
ld -arch $arch -dylib -macosx_version_min 10.1 -no_version_load_command -o dylibs/$file tmp_object.o | ||
endif | ||
end | ||
endif | ||
|
||
# Create .frameworks for each file in the framework_stubs directory. | ||
if ( -e framework_stubs ) then | ||
set files=`cd framework_stubs ; echo *` | ||
foreach file ($files) | ||
if ( ! -e frameworks/$file.framework ) then | ||
clang -arch $arch -c -fno-builtin -o tmp_object.o -x c framework_stubs/$file | ||
mkdir -p frameworks/$file.framework | ||
ld -arch $arch -dylib -macosx_version_min 10.1 -no_version_load_command -o frameworks/$file.framework/$file tmp_object.o | ||
endif | ||
end | ||
endif | ||
|
||
# Clean up. | ||
rm -f tmp_object.o |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
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,53 @@ | ||
.Dd November 10, 2010 | ||
.Dt dyldinfo 1 | ||
.Os Darwin | ||
.Sh NAME | ||
.Nm dyldinfo | ||
.Nd "Displays information used by dyld in an executable" | ||
.Sh SYNOPSIS | ||
.Nm | ||
.Op Fl arch Ar arch-name | ||
.Op Fl dylibs | ||
.Op Fl rebase | ||
.Op Fl bind | ||
.Op Fl weak_bind | ||
.Op Fl lazy_bind | ||
.Op Fl export | ||
.Op Fl opcodes | ||
.Op Fl function_starts | ||
.Ar file(s) | ||
.Sh DESCRIPTION | ||
Executables built for Mac OS X 10.6 and later have a new format for the | ||
information in the __LINKEDIT segment. The dyldinfo tool will display | ||
that information. | ||
.Pp | ||
The options are as follows: | ||
.Bl -tag -width indent | ||
.It Fl arch Ar arch | ||
Only display the specified architecture. Other architectures in a universal image are ignored. | ||
.It Fl dylibs | ||
Display the table of dylibs on which this image depends. | ||
.It Fl rebase | ||
Display the table of rebasing information. Rebasing is what dyld does when an image is | ||
not loaded at its preferred address. Typically, this involves updating pointers in the __DATA | ||
segment which point within the image. | ||
.It Fl bind | ||
Display the table of binding information. These are the symbolic fix ups that dyld must | ||
do when an image is loaded. | ||
.It Fl weak_bind | ||
Display the table of weak binding information. Typically, only C++ progams will have any | ||
weak binding. These are symbols which dyld must unique accross all images. | ||
.It Fl lazy_bind | ||
Display the table of lazy binding information. These are symbols which dyld delays binding | ||
until they are first used. Lazy binding is automatically used for all function calls to | ||
functions in some external dylib. | ||
.It Fl export | ||
Display the table symbols which this image exports. | ||
.It Fl opcodes | ||
Display the low level opcodes used to encode all rebase and binding information. | ||
.It Fl function_starts | ||
Decodes the list of function start addresses. | ||
.El | ||
.Sh SEE ALSO | ||
.Xr otool 1 | ||
.Xr nm 1 |
Oops, something went wrong.