Created
August 22, 2021 15:40
-
-
Save DQNEO/1a7db7b0dfd3c9509e6c3c10da88b5b8 to your computer and use it in GitHub Desktop.
my readelf wrapper to view an object file generated by GNU Assembler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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