Skip to content

Instantly share code, notes, and snippets.

@DQNEO
Created August 22, 2021 15:40
Show Gist options
  • Save DQNEO/1a7db7b0dfd3c9509e6c3c10da88b5b8 to your computer and use it in GitHub Desktop.
Save DQNEO/1a7db7b0dfd3c9509e6c3c10da88b5b8 to your computer and use it in GitHub Desktop.
my readelf wrapper to view an object file generated by GNU Assembler
#!/usr/bin/env bash
file=$1
readelf -W --hex-dump=.text $file
readelf -W --hex-dump=.data $file
readelf -W --relocs $file
readelf -W --hex-dump=.rela.data $file
readelf -W --symbols $file
readelf -W --hex-dump=.symtab $file
readelf -W --hex-dump=.strtab $file
readelf -W --hex-dump=.shstrtab $file
readelf -W --section-headers $file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment