2008-11-12 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Wed, 12 Nov 2008 10:27:57 +0000 (10:27 +0000)
committerTristan Gingold <gingold@adacore.com>
Wed, 12 Nov 2008 10:27:57 +0000 (10:27 +0000)
* bfd.c (bfd_get_sign_extend_vma): Return 0 for mach-o.

bfd/ChangeLog
bfd/bfd.c

index c539cf7f5ee4fcd50930a457937d897863f13201..0452dbb71bde87fba980038e214995cb485dc46f 100644 (file)
@@ -1,3 +1,7 @@
+2008-11-12  Tristan Gingold  <gingold@adacore.com>
+
+       * bfd.c (bfd_get_sign_extend_vma): Return 0 for mach-o.
+
 2008-11-11  Alan Modra  <amodra@bigpond.net.au>
 
        * elf.c (assign_file_positions_for_non_load_sections): Consolidate
index 1ffd7d05b1d54c69c47dc444f87bfaa8e63bcf4b..1900c144e6f0bbf00471894caffe7e2df9fff620 100644 (file)
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -1001,6 +1001,9 @@ bfd_get_sign_extend_vma (bfd *abfd)
       || 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;
 }