aboutsummaryrefslogtreecommitdiff
path: root/bfd/mach-o.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-12-05 14:10:11 +0000
committerTristan Gingold <gingold@adacore.com>2011-12-05 14:10:11 +0000
commit73017762b2a38355a291e6d3239ac60bb015edaf (patch)
tree9a4424fd1cf89f437fe38d0dc22a6c9e4f4d116a /bfd/mach-o.c
parentc0d9d05149c82752523ec300fce1fa6eaef80e02 (diff)
downloadgdb-73017762b2a38355a291e6d3239ac60bb015edaf.zip
gdb-73017762b2a38355a291e6d3239ac60bb015edaf.tar.gz
gdb-73017762b2a38355a291e6d3239ac60bb015edaf.tar.bz2
2011-12-05 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_write_contents): Handle LC_LOAD_UPWARD_DYLIB. (bfd_mach_o_read_dylib): Likewise. (bfd_mach_o_read_command): Likewise. (bfd_mach_o_bfd_print_private_bfd_data): Likewise.
Diffstat (limited to 'bfd/mach-o.c')
-rw-r--r--bfd/mach-o.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/mach-o.c b/bfd/mach-o.c
index edb4c21..4412b0b 100644
--- a/bfd/mach-o.c
+++ b/bfd/mach-o.c
@@ -1294,6 +1294,7 @@ bfd_mach_o_write_contents (bfd *abfd)
case BFD_MACH_O_LC_LOAD_WEAK_DYLIB:
case BFD_MACH_O_LC_ID_DYLIB:
case BFD_MACH_O_LC_REEXPORT_DYLIB:
+ case BFD_MACH_O_LC_LOAD_UPWARD_DYLIB:
case BFD_MACH_O_LC_LOAD_DYLINKER:
case BFD_MACH_O_LC_ID_DYLINKER:
case BFD_MACH_O_LC_PREBOUND_DYLIB:
@@ -2100,6 +2101,7 @@ bfd_mach_o_read_dylib (bfd *abfd, bfd_mach_o_load_command *command)
case BFD_MACH_O_LC_LOAD_WEAK_DYLIB:
case BFD_MACH_O_LC_ID_DYLIB:
case BFD_MACH_O_LC_REEXPORT_DYLIB:
+ case BFD_MACH_O_LC_LOAD_UPWARD_DYLIB:
break;
default:
BFD_FAIL ();
@@ -2684,6 +2686,7 @@ bfd_mach_o_read_command (bfd *abfd, bfd_mach_o_load_command *command)
case BFD_MACH_O_LC_ID_DYLIB:
case BFD_MACH_O_LC_LOAD_WEAK_DYLIB:
case BFD_MACH_O_LC_REEXPORT_DYLIB:
+ case BFD_MACH_O_LC_LOAD_UPWARD_DYLIB:
if (bfd_mach_o_read_dylib (abfd, command) != 0)
return -1;
break;
@@ -3951,6 +3954,7 @@ bfd_mach_o_bfd_print_private_bfd_data (bfd *abfd, void * ptr)
case BFD_MACH_O_LC_LOAD_DYLIB:
case BFD_MACH_O_LC_LOAD_WEAK_DYLIB:
case BFD_MACH_O_LC_REEXPORT_DYLIB:
+ case BFD_MACH_O_LC_LOAD_UPWARD_DYLIB:
case BFD_MACH_O_LC_ID_DYLIB:
{
bfd_mach_o_dylib_command *dylib = &cmd->command.dylib;