Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr Str With Call NameLoad AttributeLoad NameLoad attr NameStore body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr For NameStore Call AttributeLoad NameLoad attr body If CompareIn AttributeLoad NameLoad attr NameLoad body Print BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Print BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A 
Elf modification tool
Copyright (C) 2013 Jeremy C. Andrus

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

Based on Kenshoto's Elf parser

 N/A os N/A sys N/A argparse Elf Elf Elf.elf_lookup * N/A PROGRAM elfmod N/A VERSION 0.1a hidesyms N/A N/A args N/A N/A N/A elf N/A Elf N/A file N/A args elf r+b N/A N/A open N/A args syms sf N/A N/A hidden_syms N/A N/A N/A N/A sf read splitlines N/A dsym N/A N/A elf getDynSyms N/A N/A N/A N/A dsym name hidden_syms N/A N/A N/A SYM(0x%x,%s) N/A N/A dsym st_value N/A dsym name N/A N/A N/A dsym setStInfo STB_LOCAL N/A N/A dsym getInfoType N/A N/A N/A dsym setStOther STV_HIDDEN N/A N/A N/A elf writeDynamic N/A soname N/A N/A args N/A N/A N/A N/A 	Setting soname to '%s' in %s N/A N/A args name N/A args elf N/A elf N/A Elf N/A file N/A args elf r+b N/A N/A N/A elf setSoname N/A args name N/A N/A parser N/A N/A argparse ArgumentParser prog PROGRAM description Modify an ELF library in-place N/A subparsers N/A N/A parser add_subparsers title Mode help ELF modification mode N/A parser_hs N/A N/A subparsers add_parser hidesyms help Hide ELF symbols by re-writing the .dynsym table in-place N/A N/A N/A parser_hs add_argument elf help Path to ELF shared-object file N/A N/A N/A parser_hs add_argument syms help File containing symbols to hide (one per line) N/A N/A N/A parser_hs set_defaults func hidesyms N/A parser_sonm N/A N/A subparsers add_parser soname help Modify the ELF soname N/A N/A N/A parser_sonm add_argument elf help Path to ELF shared-object file N/A N/A N/A parser_sonm add_argument name help New SONAME (length must be less than or equal to original length) N/A N/A N/A parser_sonm set_defaults func soname N/A args N/A N/A parser parse_args N/A N/A N/A args func args