This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Ping [Patch v2] bfd elfxx-ia64: share code between elf32 and elf64


On Sat, Jul 9, 2011 at 11:18 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Tristan Gingold <gingold@adacore.com> writes:
>
>> This patch shouldn't have made any functional change, but ...
>
> There is one functional change:
>
> @@ -2648,7 +2135,7 @@ count_dyn_reloc (bfd *abfd, struct elfNN_ia64_dyn_sym_info *dyn_i,
> ? ? ? rent->count = 0;
> ? ? ? dyn_i->reloc_entries = rent;
> ? ? }
> - ?rent->reltext = reltext;
> + ?rent->reltext |= reltext;
> ? rent->count++;
>
> ? return TRUE;
>
>

I am checking this as an obvious fix.


-- 
H.J.
----
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index a1b9197..e469ef2 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR ld/12978
+	* elfnn-ia64.c (count_dyn_reloc): Fix a typo.
+
 2011-07-09  Alan Modra  <amodra@gmail.com>

 	PR ld/12942
diff --git a/bfd/elfnn-ia64.c b/bfd/elfnn-ia64.c
index bc31fca..3e2ee0b 100644
--- a/bfd/elfnn-ia64.c
+++ b/bfd/elfnn-ia64.c
@@ -2129,7 +2129,7 @@ count_dyn_reloc (bfd *abfd, struct
elfNN_ia64_dyn_sym_info *dyn_i,
       rent->count = 0;
       dyn_i->reloc_entries = rent;
     }
-  rent->reltext |= reltext;
+  rent->reltext = reltext;
   rent->count++;

   return TRUE;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]