#!/usr/bin/env python
"""
strip_asm.py - Cleanup ASM output for the specified file
"""
=
=
=
return
=
=
=
return
= !=
return
=
return
=
=
=
=
=
+=
+=
return
return False
=
return False
=
return False
return True
"""
process_identifiers - process all identifiers and modify them to have
consistent names across all platforms; specifically across ELF and MachO.
For example, MachO inserts an additional understore at the beginning of
names. This function removes that.
"""
=
=
=
and > 1 and \
and != :
=
+=
return
"""
Strip the ASM of unwanted directives and lines
"""
=
=
# TODO: Add more things we want to remove
=
=
=
# Remove Mach-O attribute
=
= True
= False
break
= True
break
+=
=
+=
+=
return
=
, =
=
=
= None
=
=
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
# kate: tab-width: 4; replace-tabs on; indent-width 4; tab-indents: off;
# kate: indent-mode python; remove-trailing-spaces modified;