Skip to content

Instantly share code, notes, and snippets.

@DavidEGrayson
Created July 10, 2012 23:12
Show Gist options
  • Save DavidEGrayson/3086845 to your computer and use it in GitHub Desktop.
Save DavidEGrayson/3086845 to your computer and use it in GitHub Desktop.
Workaround for binutils 2.22 bug 13697 to ensure .data section is not empty.
static void __attribute__((used)) workaround(void)
{
static volatile unsigned char w = 1;
w++;
}
@DavidEGrayson
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment