def METHOD_NAME(self, relpath, offset=0,
                        objname=None, ignore=""):
    path = pathlib.Path(self.SOURCE_ROOT, relpath)
    symaddrs = dict()
    for line in tool_output_lines(NM, "-g", path):
        addr_str, t, name = line.split()
        addr = int(addr_str, 16) + offset
        if t in ignore:
            continue
        self.symbols.append((addr, name, objname))
        symaddrs[name] = addr
        if t in "T" and not hasattr(self, name):
            setattr(self, name, self._wrap_call_to(addr))
            if relpath != self.base_object:
                self._attrs_to_clear.append(name)
    self.symbols.sort()
    return symaddrs