template <class Elf, class SymbolInfo, class Callback>

class DynamicNeededObserver

Defined at line 662 of file ../../src/lib/elfldltl/include/lib/elfldltl/dynamic.h

This can be used for invoking a callback over every DT_NEEDED tag, passed

as a string. Getting the string value requires that the SymbolInfo object

be already set up. In practice this means that DynamicNeededObserver

cannot safely be passed to DecodeDynamic with DynamicSymbolInfoObserver

because there is no expectation that DT_STRTAB will appear before DT_NEEDED.

It's the expectation that this would be used only once, just when loading

dependencies, which is likely only going to happen after getting

the symbol and relocation info of the current dso, so the cost of this

restricition isn't high.

Public Methods

void DynamicNeededObserver<Elf, SymbolInfo, Callback> (const SymbolInfo & si, Callback callback)

Defined at line 668 of file ../../src/lib/elfldltl/include/lib/elfldltl/dynamic.h

template <class DiagnosticsType, class Memory>
bool Observe (DiagnosticsType & , Memory & , DynamicTagMatch<ElfDynTag::kNeeded> , size_type val)

Defined at line 671 of file ../../src/lib/elfldltl/include/lib/elfldltl/dynamic.h

template <class DiagnosticsType, class Memory>
bool Finish (DiagnosticsType & , Memory & )

Defined at line 677 of file ../../src/lib/elfldltl/include/lib/elfldltl/dynamic.h