{ }
// Add an entry to the PLT.
- bool
+ void
add_entry(Symbol*);
- bool
+ void
add_ifunc_entry(Symbol*);
- bool
+ void
add_local_ifunc_entry(Sized_relobj_file<size, big_endian>*, unsigned int);
// Return the .rela.plt section data.
// Add an entry to the PLT.
template<int size, bool big_endian>
-bool
+void
Output_data_plt_powerpc<size, big_endian>::add_entry(Symbol* gsym)
{
if (!gsym->has_plt_offset())
this->rel_->add_global(gsym, dynrel, this, off, 0);
off += plt_entry_size;
this->set_current_data_size(off);
- return true;
}
- return false;
}
// Add an entry for a global ifunc symbol that resolves locally, to the IPLT.
template<int size, bool big_endian>
-bool
+void
Output_data_plt_powerpc<size, big_endian>::add_ifunc_entry(Symbol* gsym)
{
if (!gsym->has_plt_offset())
this->rel_->add_symbolless_global_addend(gsym, dynrel, this, off, 0);
off += plt_entry_size;
this->set_current_data_size(off);
- return true;
}
- return false;
}
// Add an entry for a local ifunc symbol to the IPLT.
template<int size, bool big_endian>
-bool
+void
Output_data_plt_powerpc<size, big_endian>::add_local_ifunc_entry(
Sized_relobj_file<size, big_endian>* relobj,
unsigned int local_sym_index)
this, off, 0);
off += plt_entry_size;
this->set_current_data_size(off);
- return true;
}
- return false;
}
static const uint32_t add_0_11_11 = 0x7c0b5a14;
{
if (this->iplt_ == NULL)
this->make_iplt_section(layout);
- if (this->iplt_->add_ifunc_entry(gsym))
- this->glink_->add_entry(object, gsym, reloc);
+ this->iplt_->add_ifunc_entry(gsym);
}
else
{
if (this->plt_ == NULL)
this->make_plt_section(layout);
- if (this->plt_->add_entry(gsym))
- this->glink_->add_entry(object, gsym, reloc);
+ this->plt_->add_entry(gsym);
}
+ this->glink_->add_entry(object, gsym, reloc);
}
// Make a PLT entry for a local STT_GNU_IFUNC symbol.
if (this->iplt_ == NULL)
this->make_iplt_section(layout);
unsigned int r_sym = elfcpp::elf_r_sym<size>(reloc.get_r_info());
- if (this->iplt_->add_local_ifunc_entry(relobj, r_sym))
- this->glink_->add_entry(relobj, r_sym, reloc);
+ this->iplt_->add_local_ifunc_entry(relobj, r_sym);
+ this->glink_->add_entry(relobj, r_sym, reloc);
}
// Return the number of entries in the PLT.