PATCH: handle mach-o in bfd_get_sign_extend_vma

Tristan Gingold gingold@adacore.com
Thu Nov 6 14:46:00 GMT 2008


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;
   }



More information about the Binutils mailing list