Recognize some new Mach-O load commands
bfd * mach-o.c: Support the new load commands by reading a linkedit data command for them. binutils * od-macho.c: Dump linkedit data for new load commands. include * mach-o/loader.h: Add declarations of two new Mach-O load commands.
This commit is contained in:
parent
013e3554b2
commit
d768f160a9
|
@ -1,3 +1,8 @@
|
||||||
|
2020-06-22 Saagar Jha <saagar@saagarjha.com>
|
||||||
|
|
||||||
|
* mach-o.c: Support the new load commands by reading a linkedit
|
||||||
|
data command for them.
|
||||||
|
|
||||||
2020-06-22 Nelson Chu <nelson.chu@sifive.com>
|
2020-06-22 Nelson Chu <nelson.chu@sifive.com>
|
||||||
|
|
||||||
* elfxx-riscv.c (struct priv_spec_t priv_specs[]): Move them from
|
* elfxx-riscv.c (struct priv_spec_t priv_specs[]): Move them from
|
||||||
|
|
|
@ -5017,6 +5017,8 @@ bfd_mach_o_read_command (bfd *abfd, bfd_mach_o_load_command *command,
|
||||||
case BFD_MACH_O_LC_DATA_IN_CODE:
|
case BFD_MACH_O_LC_DATA_IN_CODE:
|
||||||
case BFD_MACH_O_LC_DYLIB_CODE_SIGN_DRS:
|
case BFD_MACH_O_LC_DYLIB_CODE_SIGN_DRS:
|
||||||
case BFD_MACH_O_LC_LINKER_OPTIMIZATION_HINT:
|
case BFD_MACH_O_LC_LINKER_OPTIMIZATION_HINT:
|
||||||
|
case BFD_MACH_O_LC_DYLD_EXPORTS_TRIE:
|
||||||
|
case BFD_MACH_O_LC_DYLD_CHAINED_FIXUPS:
|
||||||
if (!bfd_mach_o_read_linkedit (abfd, command))
|
if (!bfd_mach_o_read_linkedit (abfd, command))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
2020-06-22 Saagar Jha <saagar@saagarjha.com>
|
||||||
|
|
||||||
|
* od-macho.c: Dump linkedit data for new load commands.
|
||||||
|
|
||||||
2020-06-19 Alan Modra <amodra@gmail.com>
|
2020-06-19 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
|
* testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
|
||||||
|
|
|
@ -214,6 +214,8 @@ static const bfd_mach_o_xlat_name bfd_mach_o_load_command_name[] =
|
||||||
{ "version_min_watchos", BFD_MACH_O_LC_VERSION_MIN_WATCHOS},
|
{ "version_min_watchos", BFD_MACH_O_LC_VERSION_MIN_WATCHOS},
|
||||||
{ "note", BFD_MACH_O_LC_NOTE},
|
{ "note", BFD_MACH_O_LC_NOTE},
|
||||||
{ "build_version", BFD_MACH_O_LC_BUILD_VERSION},
|
{ "build_version", BFD_MACH_O_LC_BUILD_VERSION},
|
||||||
|
{ "exports_trie", BFD_MACH_O_LC_DYLD_EXPORTS_TRIE},
|
||||||
|
{ "chained_fixups", BFD_MACH_O_LC_DYLD_CHAINED_FIXUPS},
|
||||||
{ NULL, 0}
|
{ NULL, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1610,6 +1612,8 @@ dump_load_command (bfd *abfd, bfd_mach_o_load_command *cmd,
|
||||||
case BFD_MACH_O_LC_FUNCTION_STARTS:
|
case BFD_MACH_O_LC_FUNCTION_STARTS:
|
||||||
case BFD_MACH_O_LC_DATA_IN_CODE:
|
case BFD_MACH_O_LC_DATA_IN_CODE:
|
||||||
case BFD_MACH_O_LC_DYLIB_CODE_SIGN_DRS:
|
case BFD_MACH_O_LC_DYLIB_CODE_SIGN_DRS:
|
||||||
|
case BFD_MACH_O_LC_DYLD_EXPORTS_TRIE:
|
||||||
|
case BFD_MACH_O_LC_DYLD_CHAINED_FIXUPS:
|
||||||
{
|
{
|
||||||
bfd_mach_o_linkedit_command *linkedit = &cmd->command.linkedit;
|
bfd_mach_o_linkedit_command *linkedit = &cmd->command.linkedit;
|
||||||
printf
|
printf
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
2020-06-22 Saagar Jha <saagar@saagarjha.com>
|
||||||
|
|
||||||
|
* mach-o/loader.h: Add declarations of two new Mach-O load
|
||||||
|
commands.
|
||||||
|
|
||||||
2020-06-22 Nelson Chu <nelson.chu@sifive.com>
|
2020-06-22 Nelson Chu <nelson.chu@sifive.com>
|
||||||
|
|
||||||
* opcode/riscv.h (riscv_get_priv_spec_class): Move the function
|
* opcode/riscv.h (riscv_get_priv_spec_class): Move the function
|
||||||
|
|
|
@ -189,6 +189,8 @@ typedef enum bfd_mach_o_load_command_type
|
||||||
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_NOTE = 0x31, /* Region of arbitrary data. */
|
BFD_MACH_O_LC_NOTE = 0x31, /* Region of arbitrary data. */
|
||||||
BFD_MACH_O_LC_BUILD_VERSION = 0x32, /* Generic build version. */
|
BFD_MACH_O_LC_BUILD_VERSION = 0x32, /* Generic build version. */
|
||||||
|
BFD_MACH_O_LC_DYLD_EXPORTS_TRIE = 0x33, /* Exports trie. */
|
||||||
|
BFD_MACH_O_LC_DYLD_CHAINED_FIXUPS = 0x34, /* Chained fixups. */
|
||||||
}
|
}
|
||||||
bfd_mach_o_load_command_type;
|
bfd_mach_o_load_command_type;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue