comment changes from Donn Terry, and indentation changes
[deliverable/binutils-gdb.git] / bfd / elf32-sparc.c
index 2118c7002726c466727d212ae4a904d56cad8e8a..bb11c070d36a764fe8a080efced17dc0b753a288 100644 (file)
@@ -1475,15 +1475,7 @@ elf32_sparc_relocate_section (output_bfd, info, input_bfd, input_section,
                        }
 
                      outrel.r_info = ELF32_R_INFO (indx, r_type);
-
-                     /* For non-RELATIVE dynamic relocations, we keep the
-                        same symbol, and so generally the same addend.  But
-                        we do need to adjust those relocations referencing
-                        sections.  */
-                     outrel.r_addend = rel->r_addend;
-                     if (r_symndx < symtab_hdr->sh_info
-                         && ELF_ST_TYPE (sym->st_info) == STT_SECTION)
-                       outrel.r_addend += sec->output_offset+sym->st_value;
+                     outrel.r_addend = relocation + rel->r_addend;
                    }
                }
 
This page took 0.023529 seconds and 4 git commands to generate.