In my specific case, I want to use it to dump what I echo
.
I don't want to involve any file…
Is there a way to make objdump
read from STDIN
instead?
Linux – way to make objdump read from STDIN instead of a file
bashlinuxstdin
Related Topic
- Linux – proper way to clear logs
- Linux – How to Prevent Accidental rm -rf /*?
- Linux Web Server – Proper Permissions for Website Files and Folders
- Bash – Run an interactive bash subshell with initial commands without returning to the (“super”) shell immediately
- Bash – reading stdin in shell
- Ssh – How to keep script from swallowing all of stdin
- Linux – How to Run a Multiline Bash Script Piped from Stdin
Best Answer
You can't. There is no way around that, you will have to use the temporary file.
Source file readelf.c has this unconditional check (in binutils 2.22-8 at least) before even attempting to open the file:
So if the file is anything but regular file (like symlink, or char device as in case of
/dev/stdin
,/proc/self/fd/*
, etc.) it won't work.Alternatively, you could modify the source and use modified objdump, but there goes your portability.