aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2002-12-24 03:43:44 +0000
committerDJ Delorie <dj@redhat.com>2002-12-24 03:43:44 +0000
commit213e90f4835f1309a968791d93e91fcbcf6ba1b2 (patch)
tree96337eb4ebc9c8a6b1d55c3c0b4b18dec020c2a1 /bfd
parent9d1127c56c02e14d5da0dfc8a442e178bea05c52 (diff)
downloadgdb-213e90f4835f1309a968791d93e91fcbcf6ba1b2.zip
gdb-213e90f4835f1309a968791d93e91fcbcf6ba1b2.tar.gz
gdb-213e90f4835f1309a968791d93e91fcbcf6ba1b2.tar.bz2
* coff64-rs6000.c (xcoff64_ppc_relocate_section): Fix logic reversal.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/coff64-rs6000.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index df7a736..b1638aa 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2002-12-23 DJ Delorie <dj@redhat.com>
+
+ * coff64-rs6000.c (xcoff64_ppc_relocate_section): Fix logic reversal.
+
2002-12-23 Alan Modra <amodra@bigpond.net.au>
* elflink.h (elf_link_output_extsym): Heed strip_discarded.
diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c
index c13d54b..dcb96dd 100644
--- a/bfd/coff64-rs6000.c
+++ b/bfd/coff64-rs6000.c
@@ -1292,7 +1292,7 @@ xcoff64_ppc_relocate_section (output_bfd, info, input_bfd,
}
if (rel->r_type >= XCOFF_MAX_CALCULATE_RELOCATION
- || ((*xcoff64_calculate_relocation[rel->r_type])
+ || !((*xcoff64_calculate_relocation[rel->r_type])
(input_bfd, input_section, output_bfd, rel, sym, &howto, val,
addend, &relocation, contents)))
return FALSE;