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?

link|improve this question
Could you please explain your situation a little more? – quanta Nov 9 '11 at 3:36
feedback

1 Answer

you can always do

objdump -d /dev/stdin < t2.o

or

cat t2.o | objdump -d /dev/stdin

sample

[root@myhost cc]# objdump -h /dev/stdin < t2.o

/dev/stdin: file format elf64-x86-64

Sections: Idx Name Size VMA LMA
File off Algn 0 .group 00000008 0000000000000000 0000000000000000 00000040 2**2 CONTENTS, READONLY, EXCLUDE, GROUP, LINK_ONCE_DISCARD

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.