From: Richard Henderson Date: Mon, 9 Sep 2002 17:34:07 +0000 (+0000) Subject: * elfxx-ia64.c (elfNN_ia64_relax_section): Handle PCREL21M X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f21f25e2bb2472e1a613bb2566496f4a3e0ad5f;p=binutils-gdb.git * elfxx-ia64.c (elfNN_ia64_relax_section): Handle PCREL21M and PCREL21F like PCREL21B. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a6465a18b41..66cce3515b7 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-09-09 Richard Henderson + + * elfxx-ia64.c (elfNN_ia64_relax_section): Handle PCREL21M + and PCREL21F like PCREL21B. + 2002-09-04 Kevin Buettner * config.bfd (mips*-*-irix6*): Add new ABI vectors. Make n32 default diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c index dca8b45cd34..2a29347365f 100644 --- a/bfd/elfxx-ia64.c +++ b/bfd/elfxx-ia64.c @@ -724,7 +724,9 @@ elfNN_ia64_relax_section (abfd, sec, link_info, again) irelend = internal_relocs + sec->reloc_count; for (irel = internal_relocs; irel < irelend; irel++) - if (ELFNN_R_TYPE (irel->r_info) == (int) R_IA64_PCREL21B) + if (ELFNN_R_TYPE (irel->r_info) == (int) R_IA64_PCREL21B + || ELFNN_R_TYPE (irel->r_info) == (int) R_IA64_PCREL21M + || ELFNN_R_TYPE (irel->r_info) == (int) R_IA64_PCREL21F) break; /* No branch-type relocations. */ @@ -756,7 +758,9 @@ elfNN_ia64_relax_section (abfd, sec, link_info, again) struct one_fixup *f; bfd_size_type amt; - if (ELFNN_R_TYPE (irel->r_info) != (int) R_IA64_PCREL21B) + if (ELFNN_R_TYPE (irel->r_info) != (int) R_IA64_PCREL21B + && ELFNN_R_TYPE (irel->r_info) != (int) R_IA64_PCREL21M + && ELFNN_R_TYPE (irel->r_info) != (int) R_IA64_PCREL21F) continue; /* Get the value of the symbol referred to by the reloc. */