aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorSaagar Jha <saagar@saagarjha.com>2020-06-22 14:29:20 +0100
committerNick Clifton <nickc@redhat.com>2020-06-22 14:29:20 +0100
commitd768f160a99558a07a2463899c8bfeec0f0a67a7 (patch)
tree2b3ef7d7bfec36169e55316eff93481c6cfa6597 /binutils
parent013e3554b269aa1da0fcd478969f0df65341e50e (diff)
downloadgdb-d768f160a99558a07a2463899c8bfeec0f0a67a7.zip
gdb-d768f160a99558a07a2463899c8bfeec0f0a67a7.tar.gz
gdb-d768f160a99558a07a2463899c8bfeec0f0a67a7.tar.bz2
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.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/od-macho.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 0cac3f4..700c1ea 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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>
* testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
diff --git a/binutils/od-macho.c b/binutils/od-macho.c
index f9d4b37..9384268 100644
--- a/binutils/od-macho.c
+++ b/binutils/od-macho.c
@@ -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},
{ "note", BFD_MACH_O_LC_NOTE},
{ "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}
};
@@ -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_DATA_IN_CODE:
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;
printf