Add support for a couple of new Mach-O commands.
PR 23742 * mach-o.c (bfd_mach_o_read_command): Accept and ignore BFD_MACH_O_LC_LINKER_OPTIONS and BFD_MACH_O_LC_BUILD_VERSION commands. * mach-o/loader.h: Add BFD_MACH_O_LC_BUILD_VERSION.
This commit is contained in:
parent
f86e17aacf
commit
ddea148b3d
4 changed files with 17 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2018-11-06 Romain Margheriti <lilrom13@gmail.com>
|
||||||
|
|
||||||
|
PR 23742
|
||||||
|
* mach-o.c (bfd_mach_o_read_command): Accept and ignore
|
||||||
|
BFD_MACH_O_LC_LINKER_OPTIONS and BFD_MACH_O_LC_BUILD_VERSION
|
||||||
|
commands.
|
||||||
|
|
||||||
2018-11-02 Alan Modra <amodra@gmail.com>
|
2018-11-02 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR 23850
|
PR 23850
|
||||||
|
|
|
@ -4888,6 +4888,9 @@ bfd_mach_o_read_command (bfd *abfd, bfd_mach_o_load_command *command)
|
||||||
if (!bfd_mach_o_read_source_version (abfd, command))
|
if (!bfd_mach_o_read_source_version (abfd, command))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
break;
|
break;
|
||||||
|
case BFD_MACH_O_LC_LINKER_OPTIONS:
|
||||||
|
case BFD_MACH_O_LC_BUILD_VERSION:
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
command->len = 0;
|
command->len = 0;
|
||||||
_bfd_error_handler (_("%pB: unknown load command %#x"),
|
_bfd_error_handler (_("%pB: unknown load command %#x"),
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
2018-11-06 Romain Margheriti <lilrom13@gmail.com>
|
||||||
|
|
||||||
|
PR 23742
|
||||||
|
* mach-o/loader.h: Add BFD_MACH_O_LC_BUILD_VERSION.
|
||||||
|
|
||||||
2018-11-06 Sudakshina Das <sudi.das@arm.com>
|
2018-11-06 Sudakshina Das <sudi.das@arm.com>
|
||||||
|
|
||||||
* opcode/arm.h (ARM_ARCH_V8_5A): Move ARM_EXT2_PREDRES and
|
* opcode/arm.h (ARM_ARCH_V8_5A): Move ARM_EXT2_PREDRES and
|
||||||
|
|
|
@ -185,7 +185,8 @@ typedef enum bfd_mach_o_load_command_type
|
||||||
BFD_MACH_O_LC_ENCRYPTION_INFO_64 = 0x2c, /* Encrypted 64 bit seg info. */
|
BFD_MACH_O_LC_ENCRYPTION_INFO_64 = 0x2c, /* Encrypted 64 bit seg info. */
|
||||||
BFD_MACH_O_LC_LINKER_OPTIONS = 0x2d, /* Linker options. */
|
BFD_MACH_O_LC_LINKER_OPTIONS = 0x2d, /* Linker options. */
|
||||||
BFD_MACH_O_LC_LINKER_OPTIMIZATION_HINT = 0x2e, /* Optimization hints. */
|
BFD_MACH_O_LC_LINKER_OPTIMIZATION_HINT = 0x2e, /* Optimization hints. */
|
||||||
BFD_MACH_O_LC_VERSION_MIN_WATCHOS = 0x30 /* Minimal WatchOS version. */
|
BFD_MACH_O_LC_VERSION_MIN_WATCHOS = 0x30, /* Minimal WatchOS version. */
|
||||||
|
BFD_MACH_O_LC_BUILD_VERSION = 0x32 /* Records linker, SDK, OS, and tools version used. */
|
||||||
}
|
}
|
||||||
bfd_mach_o_load_command_type;
|
bfd_mach_o_load_command_type;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue