Skip to content

Instantly share code, notes, and snippets.

@osadalakmal
Created March 17, 2013 16:37
Show Gist options
  • Save osadalakmal/5182337 to your computer and use it in GitHub Desktop.
Save osadalakmal/5182337 to your computer and use it in GitHub Desktop.
Sample use of elftagger
elf-tag $ readelf -p BuildTags a.out
readelf: Warning: Section 'BuildTags' was not dumped because it does not exist!
elf-tag $ ./tag.sh -u "osada" -g "git-describe-string" -v "0.02" a.out
elf-tag $ readelf -p BuildTags a.out.new
String dump of section 'BuildTags':
[ 0] BuildTags ver0.1
Git Describe: git-describe-string
User Name: osada
Version: 0.02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment