Skip to content

Instantly share code, notes, and snippets.

@yannayl
Last active August 17, 2020 22:46
Show Gist options
  • Save yannayl/7efddcd61a9f63406e73f3be69d1d728 to your computer and use it in GitHub Desktop.
Save yannayl/7efddcd61a9f63406e73f3be69d1d728 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