X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Freloc16.c;h=39e95f288fffc372e6f279a13950e11b0e3f94be;hb=bb7c96deb1a14ef7e8b51d5339a65a8064515c78;hp=31fc15d87690f3d5b41961e5418f1d24f53fc855;hpb=2c3fc38946973ec305b63248abdd170eda059f80;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/reloc16.c b/bfd/reloc16.c index 31fc15d876..39e95f288f 100644 --- a/bfd/reloc16.c +++ b/bfd/reloc16.c @@ -1,7 +1,5 @@ /* 8 and 16 bit COFF relocation functions, for BFD. - Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 2000, 2001, - 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2012 - Free Software Foundation, Inc. + Copyright (C) 1990-2016 Free Software Foundation, Inc. Written by Cygnus Support. This file is part of BFD, the Binary File Descriptor library. @@ -82,11 +80,9 @@ bfd_coff_reloc16_get_value (arelent *reloc, value = 0; else { - if (!((*link_info->callbacks->undefined_symbol) - (link_info, bfd_asymbol_name (symbol), - input_section->owner, input_section, reloc->address, - TRUE))) - abort (); + (*link_info->callbacks->undefined_symbol) + (link_info, bfd_asymbol_name (symbol), + input_section->owner, input_section, reloc->address, TRUE); value = 0; } } @@ -155,7 +151,7 @@ bfd_coff_reloc16_relax_section (bfd *abfd, arelent **reloc_vector = NULL; long reloc_count; - if (link_info->relocatable) + if (bfd_link_relocatable (link_info)) (*link_info->callbacks->einfo) (_("%P%F: --relax and -r may not be used together\n"));