Пример #1
0
    def addr_patch(self, line, label):
        cchars = "[a-zA-Z0-9_\-\* ]+"
        tn = "(%s)%s\s*(?:=[\s\S]+)?;" % (cchars, label.name)
        try:
            last = line.index("=")
        except:
            last = line.index(";")

        value = pure_utils.get_symbol_location(self.cc, self.elf, label.name,
                                               self.stage)
        l = "%s = 0x%x;\n" % (line[:last], value)
        return l
def get_symbol_location(name, stage, debug=False):
    elf = stage.elf
    return pure_utils.get_symbol_location(elf, name, debug)
Пример #3
0
def get_symbol_location(name, stage, debug=False, nm=False):
    cc = Main.cc
    elf = stage.elf
    return pure_utils.get_symbol_location(cc, elf, name, debug, nm)
def get_symbol_location(name, stage, debug=False, nm=False):
    cc = Main.cc
    elf = Main.get_config("stage_elf", stage)
    return pure_utils.get_symbol_location(cc, elf, name, debug, nm)