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
  • 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