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.
This commit is contained in:
Tristan Gingold
2012-01-04 09:58:55 +00:00
parent 2ca7691a9b
commit fc55a90257
7 changed files with 79 additions and 8 deletions

View File

@ -1,6 +1,7 @@
/* Mach-O support for BFD.
Copyright 1999, 2000, 2001, 2002, 2003, 2005, 2007, 2008, 2009, 2011,
2012 Free Software Foundation, Inc.
2012
Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@ -482,6 +483,14 @@ typedef struct bfd_mach_o_version_min_command
}
bfd_mach_o_version_min_command;
typedef struct bfd_mach_o_encryption_info_command
{
unsigned int cryptoff;
unsigned int cryptsize;
unsigned int cryptid;
}
bfd_mach_o_encryption_info_command;
typedef struct bfd_mach_o_load_command
{
bfd_mach_o_load_command_type type;
@ -502,6 +511,7 @@ typedef struct bfd_mach_o_load_command
bfd_mach_o_str_command str;
bfd_mach_o_dyld_info_command dyld_info;
bfd_mach_o_version_min_command version_min;
bfd_mach_o_encryption_info_command encryption_info;
}
command;
}