def hidesyms(args):
    #print "Loading", args.elf
    elf = Elf(file(args.elf, "r+b"))
    #print "Loading symbols from", args.syms
    with open(args.syms) as sf:
        hidden_syms = sf.read().splitlines()
    #print elf
    for dsym in elf.getDynSyms():
        if hidden_syms in dsym.name:
            print 'SYM(0x%x,%s)' % (dsym.st_value, dsym.name)
            dsym.setStInfo(STB_LOCAL, dsym.getInfoType())
            dsym.setStOther(STV_HIDDEN)
    elf.writeDynamic()
dataset/ETHPy150Open columbia/libtrack/libtrack/elfmod/elfmod.py/hidesyms/swapped operands of `in`