>From a4718afd4f5a9174e7f4f10b212bfebca6661cbe Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Thu, 27 Dec 2018 16:13:56 +0100 Subject: [PATCH 4/6] Output code signature sections; align on 16 bytes --- src/unexmacosx.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/unexmacosx.c b/src/unexmacosx.c index 561a509..653ecc0 100644 --- a/src/unexmacosx.c +++ b/src/unexmacosx.c @@ -628,6 +628,9 @@ print_load_command_name (int lc) printf ("LC_DYLIB_CODE_SIGN_DRS"); break; #endif + case LC_CODE_SIGNATURE: + printf ("LC_CODE_SIGNATURE"); + break; default: printf ("unknown (0x%x) ", lc); } @@ -1229,6 +1232,13 @@ dump_it (void) copy_linkedit_data (lca[i], linkedit_delta, 1); break; #endif + case LC_CODE_SIGNATURE: + /* as is quasi-documented in Technical Note TN2206, the code */ + /* signature section is not aligned on page boundary, but */ + /* rather on a 16 bytes boundary (it is not large enough to */ + /* waste most of a page). */ + copy_linkedit_data (lca[i], linkedit_delta, 16); + break; default: copy_other (lca[i]); break; -- 2.25.2