p->pc_count += 1;
if ((r_type == R_PPC64_ADDR64 || r_type == R_PPC64_TOC)
&& rel->r_offset % 2 == 0
- && sec->alignment_power != 0
- && ((!NO_OPD_RELOCS && is_opd) || !ifunc))
+ && sec->alignment_power != 0)
p->rel_count += 1;
}
else
p->count += 1;
if ((r_type == R_PPC64_ADDR64 || r_type == R_PPC64_TOC)
&& rel->r_offset % 2 == 0
- && sec->alignment_power != 0
- && ((!NO_OPD_RELOCS && is_opd) || !is_ifunc))
+ && sec->alignment_power != 0)
p->rel_count += 1;
}
}
p->pc_count -= 1;
if ((r_type == R_PPC64_ADDR64 || r_type == R_PPC64_TOC)
&& rel->r_offset % 2 == 0
- && sec->alignment_power != 0
- && ((!NO_OPD_RELOCS
- && ppc64_elf_section_data (sec)->sec_type == sec_opd)
- || h->type != STT_GNU_IFUNC))
+ && sec->alignment_power != 0)
p->rel_count -= 1;
p->count -= 1;
if (p->count == 0)
{
if ((r_type == R_PPC64_ADDR64 || r_type == R_PPC64_TOC)
&& rel->r_offset % 2 == 0
- && sec->alignment_power != 0
- && ((!NO_OPD_RELOCS
- && ppc64_elf_section_data (sec)->sec_type == sec_opd)
- || !is_ifunc))
+ && sec->alignment_power != 0)
p->rel_count -= 1;
p->count -= 1;
if (p->count == 0)
if (eh->elf.type == STT_GNU_IFUNC)
sreloc = htab->elf.irelplt;
count = p->count;
- if (info->enable_dt_relr && SYMBOL_REFERENCES_LOCAL (info, h))
+ if (info->enable_dt_relr
+ && ((!NO_OPD_RELOCS
+ && ppc64_elf_section_data (p->sec)->sec_type == sec_opd)
+ || (eh->elf.type != STT_GNU_IFUNC
+ && SYMBOL_REFERENCES_LOCAL (info, h))))
count -= p->rel_count;
sreloc->size += count * sizeof (Elf64_External_Rela);
}
asection *srel;
count = p->count;
- if (info->enable_dt_relr)
+ if (info->enable_dt_relr
+ && ((!NO_OPD_RELOCS
+ && (ppc64_elf_section_data (p->sec)->sec_type
+ == sec_opd))
+ || !p->ifunc))
count -= p->rel_count;
srel = elf_section_data (p->sec)->sreloc;
if (p->ifunc)