aboutsummaryrefslogtreecommitdiffstats
path: root/docs/ldid.1
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2022-03-22 08:44:59 -0400
committerGitHub <noreply@github.com>2022-03-22 08:44:59 -0400
commit3af74ef52e975717593db0916c3c8f15e06fc7f0 (patch)
tree3ecb8538ad5567bdca2d7959ffbfdc93cc33b647 /docs/ldid.1
parentfc4657fe12a6063ba86dfd67270607d64cbbac18 (diff)
downloadldid-3af74ef52e975717593db0916c3c8f15e06fc7f0.tar.gz
ldid-3af74ef52e975717593db0916c3c8f15e06fc7f0.tar.zst
ldid-3af74ef52e975717593db0916c3c8f15e06fc7f0.zip
Add support for `-arch arch_type` (#10)
This is identical to -A except that it uses the name of the arch not the values of the CPU_TYPE/CPU_SUBTYPE. This makes ldid more compatible with Apple's CC tools where this flag is used extensively. Co-authored-by: Nick Chan <towinchenmi@gmail.com>
Diffstat (limited to 'docs/ldid.1')
-rw-r--r--docs/ldid.115
1 files changed, 13 insertions, 2 deletions
diff --git a/docs/ldid.1 b/docs/ldid.1
index 02170e1..41b1bc5 100644
--- a/docs/ldid.1
+++ b/docs/ldid.1
@@ -28,14 +28,13 @@
.Op Fl r | Fl S Ns Ar file.xml | Fl s
.Op Fl T Ns Ar timestamp
.Op Fl u
+.Op Fl arch Ar arch_type
.Ar
.Sh DESCRIPTION
.Nm
adds SHA1 and SHA256 hashes to a Mach-O file so that they can be run
on a system that has validation but not signature verification.
.Bl -tag -width -indent
-.It Fl a
-Print the CPU types and subtypes in hexadecimal.
.It Fl A Ns Ar cputype : Ns Ar subtype
When used with
.Fl a , Fl D , Fl e , Fl h , Fl q ,
@@ -49,6 +48,17 @@ and
and
.Ar subtype
should both be integers.
+.It Fl a
+Print the CPU types and subtypes in hexadecimal.
+.It Fl arch Ar arch_type
+The same as
+.Fl A ,
+except the name of the architecture is used.
+The list of currently known
+.Ar arch_type Ns s
+can be found in
+.Xr arch 3 .
+This is a Procursus extension.
.It Fl C Ns Op Ar adhoc | Ar enforcement | Ar expires | Ar hard | Ar host | Ar kill | Ar library-validation | Ar restrict | Ar runtime
Specify the option flags to embed in the code signature.
See
@@ -131,6 +141,7 @@ the timestamp will be set to a hash of the Mach-O header.
Use
.Ar password
as the password for the p12 certificate instead of prompting.
+This is a Procursus extension.
.It Fl u
If the binary was linked against UIKit, then print the UIKit version that the
Mach-O binaries were linked against.