Skip to content

Instantly share code, notes, and snippets.

@iddoeldor
Forked from yannayl/prefix_globals.py
Created August 17, 2020 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iddoeldor/682dbd1c82f812258501b394bb6cbb35 to your computer and use it in GitHub Desktop.
Save iddoeldor/682dbd1c82f812258501b394bb6cbb35 to your computer and use it in GitHub Desktop.
import sark
for segname in ['.bss', '.data']:
for line in sark.Segment(name=segname).lines:
if not line.name:
continue
if line.name.startswith('g_'):
continue
line.name = 'g_' + line.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment