aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2012-01-04 09:58:55 +0000
committerTristan Gingold <gingold@adacore.com>2012-01-04 09:58:55 +0000
commitfc55a902573b7f73d8f138b843f31f5adbe7331e (patch)
tree0d5c58dbdf940acc418d5d52e79127ee1b100546 /binutils
parent2ca7691a9b964e6f393fbcc37e83dd8f91e63ae2 (diff)
downloadgdb-fc55a902573b7f73d8f138b843f31f5adbe7331e.zip
gdb-fc55a902573b7f73d8f138b843f31f5adbe7331e.tar.gz
gdb-fc55a902573b7f73d8f138b843f31f5adbe7331e.tar.bz2
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')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/od-macho.c15
2 files changed, 19 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index b81c81d..a7a78c4 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-04 Tristan Gingold <gingold@adacore.com>
+
+ * od-macho.c: Update copyright year.
+ (dump_load_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
+
2011-12-28 Ian Lance Taylor <iant@google.com>
* dwarf.c (read_and_display_attr_value): Handle DW_LANG_Go.
diff --git a/binutils/od-macho.c b/binutils/od-macho.c
index c5e315d..fbdd53f 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);