From: Tristan Gingold Date: Wed, 12 Nov 2008 10:27:57 +0000 (+0000) Subject: 2008-11-12 Tristan Gingold X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09c6f846b63041b8161c0d4339ac1ddef11ea290;p=binutils-gdb.git 2008-11-12 Tristan Gingold * bfd.c (bfd_get_sign_extend_vma): Return 0 for mach-o. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c539cf7f5ee..0452dbb71bd 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2008-11-12 Tristan Gingold + + * bfd.c (bfd_get_sign_extend_vma): Return 0 for mach-o. + 2008-11-11 Alan Modra * elf.c (assign_file_positions_for_non_load_sections): Consolidate diff --git a/bfd/bfd.c b/bfd/bfd.c index 1ffd7d05b1d..1900c144e6f 100644 --- 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; }