PR ld/1775
authorAlan Modra <amodra@gmail.com>
Tue, 1 Nov 2005 22:57:23 +0000 (22:57 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 1 Nov 2005 22:57:23 +0000 (22:57 +0000)
* elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Add required
parentheses.

bfd/ChangeLog
bfd/elf32-m68k.c

index db253d2c9498d4b2e8dfb16ac0599ec4aed130ea..f4549c30455bbf8863c3a730a4d4492dfe4e4ba0 100644 (file)
@@ -1,3 +1,9 @@
+2005-11-02  Alan Modra  <amodra@bigpond.net.au>
+
+       PR ld/1775
+       * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Add required
+       parentheses.
+
 2005-10-29  H.J. Lu  <hongjiu.lu@intel.com>
 
        * Makefile.am: Run "make dep-am".
index 589dccfb35da31591f6810567a9534ad2044ae26..fec2bbb460a6f0e578eca87f851b4d16bd716bdb 100644 (file)
@@ -1871,7 +1871,7 @@ elf_m68k_finish_dynamic_symbol (output_bfd, info, h, sym)
                  + got_offset
                  - (splt->output_section->vma
                     + h->plt.offset
-                    + CFV4E_FLAG (output_bfd) ? 8 : 2),
+                    + (CFV4E_FLAG (output_bfd) ? 8 : 2)),
                  splt->contents + h->plt.offset + plt_off1);
 
       bfd_put_32 (output_bfd, plt_index * sizeof (Elf32_External_Rela),
@@ -1884,7 +1884,7 @@ elf_m68k_finish_dynamic_symbol (output_bfd, info, h, sym)
                  (splt->output_section->vma
                   + splt->output_offset
                   + h->plt.offset
-                  + CFV4E_FLAG (output_bfd) ? 12 : 8),
+                  + (CFV4E_FLAG (output_bfd) ? 12 : 8)),
                  sgot->contents + got_offset);
 
       /* Fill in the entry in the .rela.plt section.  */