// Create a map from names to dynamic symbol table entries.
// TODO: This should use the object file's build in hash table instead if
// it exists.
- for (auto i = obj.begin_dynamic_symbols(), e = obj.end_dynamic_symbols();
+ for (auto i = obj.dynamic_symbol_begin(), e = obj.dynamic_symbol_end();
i != e; ++i) {
auto name = obj.getSymbolName(i, true);
if ((ec = name.getError()))
if (std::error_code ec = sectionName.getError())
return ec;
- auto rai(_objFile->begin_rela(§ion));
- auto rae(_objFile->end_rela(§ion));
+ auto rai(_objFile->rela_begin(§ion));
+ auto rae(_objFile->rela_end(§ion));
_relocationAddendReferences[sHdr] = make_range(rai, rae);
totalRelocs += std::distance(rai, rae);
if (std::error_code ec = sectionName.getError())
return ec;
- auto ri(_objFile->begin_rel(§ion));
- auto re(_objFile->end_rel(§ion));
+ auto ri(_objFile->rel_begin(§ion));
+ auto re(_objFile->rel_end(§ion));
_relocationReferences[sHdr] = make_range(ri, re);
totalRelocs += std::distance(ri, re);
std::error_code ELFFile<ELFT>::createSymbolsFromAtomizableSections() {
// Increment over all the symbols collecting atoms and symbol names for
// later use.
- auto SymI = _objFile->begin_symbols(), SymE = _objFile->end_symbols();
+ auto SymI = _objFile->symbol_begin(), SymE = _objFile->symbol_end();
// Skip over dummy sym.
if (SymI != SymE)