'Loads the symbols for all relocations'

def _populate_got(self):

    if self.statically_linked:
        return
    for section in self.iter_sections():
        if (not isinstance(section, RelocationSection)):
            continue
        if (section.header.sh_link == SHN_INDICES.SHN_UNDEF):
            continue
        symbols = self.get_section(section.header.sh_link)
        for rel in section.iter_relocations():
            sym_idx = rel.entry.r_info_sym
            if (not sym_idx):
                continue
            symbol = symbols.get_symbol(sym_idx)
            if (symbol and symbol.name):
                self.got[symbol.name] = rel.entry.r_offset
    if (self.arch == 'mips'):
        try:
            self._populate_mips_got()
        except Exception as e:
            log.warn('Could    not    populate    MIPS    GOT:    %s', e)
    if (not self.got):
        log.warn('Did    not    find    any    GOT    entries')
