summaryrefslogtreecommitdiff
path: root/binutils/od-macho.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2012-01-04 09:58:52 +0000
committerTristan Gingold <gingold@adacore.com>2012-01-04 09:58:52 +0000
commit22e3dbd7e32724db8eab9eef22dfb93e8d0da74a (patch)
tree330e0e185b63b9decf45abc4169a553aece8c0d4 /binutils/od-macho.c
parent6a5851efac3d5b0cca704a20f3aba4abf313f526 (diff)
downloadbinutils-redhat-22e3dbd7e32724db8eab9eef22dfb93e8d0da74a.tar.gz
bfd/
2012-01-04 Tristan Gingold <gingold@adacore.com> * mach-o.h: Reindent header. (bfd_mach_o_encryption_info_command): New structure. (bfd_mach_o_load_command): Add encryption_info field. * mach-o.c (bfd_mach_o_read_encryption_info): New function. (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO. (bfd_mach_o_read_command): Adjust error message. binutils/ 2012-01-04 Tristan Gingold <gingold@adacore.com> * od-macho.c: Update copyright year. (dump_load_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO. include/mach-o/ 2012-01-04 Tristan Gingold <gingold@adacore.com> * external.h: Update copyright year. (mach_o_symtab_command_external): Add comments. (mach_o_encryption_info_command_external): New structure.
Diffstat (limited to 'binutils/od-macho.c')
-rw-r--r--binutils/od-macho.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/binutils/od-macho.c b/binutils/od-macho.c
index c5e315dad3..fbdd53f3aa 100644
--- a/binutils/od-macho.c
+++ b/binutils/od-macho.c
@@ -1,5 +1,5 @@
/* od-macho.c -- dump information about an Mach-O object file.
- Copyright 2011 Free Software Foundation, Inc.
+ Copyright 2011, 2012 Free Software Foundation, Inc.
Written by Tristan Gingold, Adacore.
This file is part of GNU Binutils.
@@ -949,6 +949,19 @@ dump_load_command (bfd *abfd, bfd_mach_o_load_command *cmd,
case BFD_MACH_O_LC_UNIXTHREAD:
dump_thread (abfd, cmd);
break;
+ case BFD_MACH_O_LC_ENCRYPTION_INFO:
+ {
+ bfd_mach_o_encryption_info_command *cryp =
+ &cmd->command.encryption_info;
+ printf
+ ("\n"
+ " cryptoff: 0x%08x cryptsize: 0x%08x (endoff 0x%08x)"
+ " cryptid: %u\n",
+ cryp->cryptoff, cryp->cryptsize,
+ cryp->cryptoff + cryp->cryptsize,
+ cryp->cryptid);
+ }
+ break;
case BFD_MACH_O_LC_DYLD_INFO:
putchar ('\n');
dump_dyld_info (abfd, cmd);