In my specific case ,I want to use it to dump what I
I don't want to involve any file...
Is there a way to make
objdump read from stdin instead?
you can always do
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
Alternatively, you could modify the source and use modified objdump, but there goes your portability.