1830895 Members
2109 Online
110017 Solutions
New Discussion

Usage of elfdump....

 
Anitha_5
Contributor

Usage of elfdump....


Hello everybody,

let me know the usage of elfdump.

I tried using the options available from "man elfdump" like,

elfdump -a libc.a

It's giving "elfdump error"(Bad input file)...

So, let me know more info. on elfdump

Regards,

Anitha
7 REPLIES 7
Muthukumar_5
Honored Contributor

Re: Usage of elfdump....

what is # file libc.a saying.

elfdump is used for dumping informations about ELF application related object files and libraries.

You have to check file type before using elfdump.

Read more in http://nixdoc.net/man-pages/HP-UX/man1/elfdump.1.html
Easy to suggest when don't know about the problem!
Anitha_5
Contributor

Re: Usage of elfdump....

Hi,

We are running the program on HP-UX 11.11

Can I know what type of object file format does elfdump supports on HP-UX....

The object file format which i'm using is

"PA-RISC 2.0 relocatable object"

Regards,

Anitha
Muthukumar_5
Honored Contributor

Re: Usage of elfdump....

elfdump only supports ELF format of file. And you are trying for "PA-RISC 2.0 relocatable object" file.

Try with odump command for this.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: Usage of elfdump....

See man page of http://nixdoc.net/man-pages/HP-UX/man1/odump.1.html for more reference.

odump -all / library of PA-RISC system.
Easy to suggest when don't know about the problem!
Amit Agarwal_1
Trusted Contributor

Re: Usage of elfdump....

elfdump is for ELF binaries & libraries. On HP-UX you will get one if you build

PA 64-bit, IPF-32 bit, or/and IPF 64-bit.

PA 32-bit are in SOM format, and you can use 'odump' facility to read it. See 'man odump'
raghu_14
Advisor

Re: Usage of elfdump....

elfdump is for 64bit applications only.
Instead use, odump, which takes one or more 32-bit native code files (object files, shared
and archive libraries, executables) and dumps information about them. For more info read odump(1) manpage.
A ship in the harbor is safe, but that is not what ships are built for.
Kent Ostby
Honored Contributor

Re: Usage of elfdump....

If it's an ELF file then "file " will return something like:

ELF-64 executable object file - PA-RISC 2.0 (LP64)
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"