This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed/darwin] handle LC_RPATH


Hi,

this tiny patch makes the bfd mach-o back-end recognize the LC_RPATH command.

Tristan.

bfd/
2009-10-09  Tristan Gingold  <gingold@adacore.com>

	* mach-o.c (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_RPATH.
	(bfd_mach_o_bfd_print_private_bfd_data): Ditto.

Index: mach-o.c
===================================================================
RCS file: /cvs/src/src/bfd/mach-o.c,v
retrieving revision 1.45
diff -c -r1.45 mach-o.c
*** mach-o.c	9 Oct 2009 15:14:56 -0000	1.45
--- mach-o.c	9 Oct 2009 15:31:51 -0000
***************
*** 2523,2528 ****
--- 2523,2529 ----
      case BFD_MACH_O_LC_SUB_UMBRELLA:
      case BFD_MACH_O_LC_SUB_LIBRARY:
      case BFD_MACH_O_LC_SUB_CLIENT:
+     case BFD_MACH_O_LC_RPATH:
        if (bfd_mach_o_read_str (abfd, command) != 0)
          return -1;
        break;
***************
*** 3788,3793 ****
--- 3789,3795 ----
          case BFD_MACH_O_LC_SUB_UMBRELLA:
          case BFD_MACH_O_LC_SUB_LIBRARY:
          case BFD_MACH_O_LC_SUB_CLIENT:
+         case BFD_MACH_O_LC_RPATH:
  	  {
  	    bfd_mach_o_str_command *str = &cmd->command.str;
  	    fprintf (file, " %s\n", str->str);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]