From 6e01787dda9e984e4f8306c5c167101b4a496464 Mon Sep 17 00:00:00 2001 From: hjl Date: Sat, 29 May 2004 19:25:53 +0000 Subject: [PATCH] 2004-05-29 H.J. Lu * elfxx-ia64.c (elfNN_ia64_relax_section): Undo the last change. --- bfd/ChangeLog | 5 +++++ bfd/elfxx-ia64.c | 23 +++++++---------------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 52c3584186..afca5c3f94 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2004-05-29 H.J. Lu + + * elfxx-ia64.c (elfNN_ia64_relax_section): Undo the last + change. + 2004-05-28 DJ Delorie * elf-m10300.c (mn10300_elf_relax_section): Preserve reloc addend diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c index f72df9e1f1..26b2e45548 100644 --- a/bfd/elfxx-ia64.c +++ b/bfd/elfxx-ia64.c @@ -864,15 +864,6 @@ elfNN_ia64_relax_section (abfd, sec, link_info, again) toff = isym->st_value; dyn_i = get_dyn_sym_info (ia64_info, NULL, abfd, irel, FALSE); - - if ((tsec->flags & SEC_MERGE) - && ELF_ST_TYPE (isym->st_info) == STT_SECTION - && tsec->sec_info_type == ELF_INFO_TYPE_MERGE) - toff = _bfd_merged_section_offset (abfd, &tsec, - elf_section_data (tsec)->sec_info, - toff + irel->r_addend); - else - toff += irel->r_addend; } else { @@ -917,15 +908,15 @@ elfNN_ia64_relax_section (abfd, sec, link_info, again) tsec = h->root.u.def.section; toff = h->root.u.def.value; } - - if (tsec->sec_info_type == ELF_INFO_TYPE_MERGE) - toff = _bfd_merged_section_offset (abfd, &tsec, - elf_section_data (tsec)->sec_info, - toff + irel->r_addend); - else - toff += irel->r_addend; } + if (tsec->sec_info_type == ELF_INFO_TYPE_MERGE) + toff = _bfd_merged_section_offset (abfd, &tsec, + elf_section_data (tsec)->sec_info, + toff + irel->r_addend); + else + toff += irel->r_addend; + symaddr = tsec->output_section->vma + tsec->output_offset + toff; roff = irel->r_offset; -- 2.11.0