summaryrefslogtreecommitdiff
path: root/src/unexmacosx.c
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2012-08-07 12:47:26 +0900
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2012-08-07 12:47:26 +0900
commitdb74a5fcb7ebed92c0a944c38b61de1c7ebb87d0 (patch)
treeae56c5dff1c09318bd380e90054095ae019839e0 /src/unexmacosx.c
parent7178e7222c34f2654ccc126c64eb16fbe5f382b5 (diff)
downloademacs-db74a5fcb7ebed92c0a944c38b61de1c7ebb87d0.tar.gz
Add new load commands for OS X 10.8.
Diffstat (limited to 'src/unexmacosx.c')
-rw-r--r--src/unexmacosx.c23
1 files changed, 21 insertions, 2 deletions
diff --git a/src/unexmacosx.c b/src/unexmacosx.c
index 2e77d3e17bc..8661ee4be1b 100644
--- a/src/unexmacosx.c
+++ b/src/unexmacosx.c
@@ -609,6 +609,21 @@ print_load_command_name (int lc)
printf ("LC_FUNCTION_STARTS");
break;
#endif
+#ifdef LC_MAIN
+ case LC_MAIN:
+ printf ("LC_MAIN ");
+ break;
+#endif
+#ifdef LC_SOURCE_VERSION
+ case LC_SOURCE_VERSION:
+ printf ("LC_SOURCE_VERSION");
+ break;
+#endif
+#ifdef LC_DYLIB_CODE_SIGN_DRS
+ case LC_DYLIB_CODE_SIGN_DRS:
+ printf ("LC_DYLIB_CODE_SIGN_DRS");
+ break;
+#endif
default:
printf ("unknown ");
}
@@ -1146,8 +1161,9 @@ copy_dyld_info (struct load_command *lc, long delta)
#endif
#ifdef LC_FUNCTION_STARTS
-/* Copy a LC_FUNCTION_STARTS load command from the input file to the
- output file, adjusting the data offset field. */
+/* Copy a LC_FUNCTION_STARTS/LC_DYLIB_CODE_SIGN_DRS load command from
+ the input file to the output file, adjusting the data offset
+ field. */
static void
copy_linkedit_data (struct load_command *lc, long delta)
{
@@ -1241,6 +1257,9 @@ dump_it (void)
#endif
#ifdef LC_FUNCTION_STARTS
case LC_FUNCTION_STARTS:
+#ifdef LC_DYLIB_CODE_SIGN_DRS
+ case LC_DYLIB_CODE_SIGN_DRS:
+#endif
copy_linkedit_data (lca[i], linkedit_delta);
break;
#endif