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]

PATCH: handle mach-o in bfd_get_sign_extend_vma


Hi,

yet another small hack: handle mach-o target in bfd_get_sign_extend_vma.
This function is required by the dwarf code in gdb.

Tristan.

bfd/
2008-11-06  Tristan Gingold  <gingold@adacore.com>
	
	* bfd.c (bfd_get_sign_extend_vma): Return 0 for mach-o.

*** bfd/bfd.c	17 Aug 2008 03:12:49 -0000	1.104
--- bfd/bfd.c	6 Nov 2008 14:43:06 -0000
*************** bfd_get_sign_extend_vma (bfd *abfd)
*** 1001,1006 ****
--- 1002,1010 ----
        || strcmp (name, "pei-arm-wince-little") == 0)
      return 1;

+   if (CONST_STRNEQ (name, "mach-o"))
+     return 0;
+
    bfd_set_error (bfd_error_wrong_format);
    return -1;
  }


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