From 8ea80f084388d7c76b38d587043f2d6935db90b2 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 6 Aug 2002 08:51:42 +0000 Subject: [PATCH] * coff-rs6000.c: (xcoff_rtype2howto): Don't place reloc address in addend. * coff64-rs6000.c: (xcoff64_rtype2howto): Likewise. --- bfd/ChangeLog | 7 +++++++ bfd/coff-rs6000.c | 5 ----- bfd/coff64-rs6000.c | 5 ----- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f87d703199c..e3c02eb5252 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2002-08-06 Alan Modra + + * coff-rs6000.c: (xcoff_rtype2howto): Don't place reloc address in + addend. + * coff64-rs6000.c: (xcoff64_rtype2howto): Likewise. + 2002-08-06 Alan Modra * coff-rs6000.c: Formatting fixes. @@ -8,6 +14,7 @@ (rs6000coff_vec): Likewise. (bfd_pmac_xcoff_backend_data): Likewise. (pmac_xcoff_vec): Likewise. + * coff64-rs6000.c: Formatting fixes. (xcoff64_calculate_relocation): Use PARAMS in declaration. (xcoff64_ppc_relocate_section): Use old-style function pointer call. diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c index b97813d48ce..bf4ebc15aa7 100644 --- a/bfd/coff-rs6000.c +++ b/bfd/coff-rs6000.c @@ -996,11 +996,6 @@ xcoff_rtype2howto (relent, internal) && (relent->howto->bitsize != ((unsigned int) internal->r_size & 0x1f) + 1)) abort (); - - /* Put a meaningful value in addend */ - relent->addend = (internal->r_size & 0x80 - ? -internal->r_vaddr - : internal->r_vaddr); } reloc_howto_type * diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c index 06ac776d3ae..c259d359e76 100644 --- a/bfd/coff64-rs6000.c +++ b/bfd/coff64-rs6000.c @@ -1788,11 +1788,6 @@ xcoff64_rtype2howto (relent, internal) && (relent->howto->bitsize != ((unsigned int) internal->r_size & 0x3f) + 1)) abort (); - - /* Put a meaningful value in addend */ - relent->addend = (internal->r_size & 0x80 - ? -internal->r_vaddr - : internal->r_vaddr); } reloc_howto_type * -- 2.30.2