Unix Technical Forum

disassembler or objdump for hpux 11.23 Itanium

This is a discussion on disassembler or objdump for hpux 11.23 Itanium within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> Hi all We need a disassembler for HP Itanium. The old gnu "objdump" that we have does not support ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 07:03 PM
suuquan@sbcglobal.net
 
Posts: n/a
Default disassembler or objdump for hpux 11.23 Itanium

Hi all

We need a disassembler for HP Itanium. The old gnu "objdump" that we
have does not support Itanium ia64.

Question 1: does hpux 11.23 for itanium has a disassembler we can use?

Question 2: is there an "objdump" that can read ia64 formats.
> objdump -d /bin/ksh

oobjdump: /bin/ksh: File format not recognized

Question 3: (the real reason) is there a tool that tells us that 2
binaries (executable or library) has changed, regardless of any
timestamp?

Thanks in advance

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 07:03 PM
Paul Pluzhnikov
 
Posts: n/a
Default Re: disassembler or objdump for hpux 11.23 Itanium

suuquan@sbcglobal.net writes:

> Question 1: does hpux 11.23 for itanium has a disassembler we can use?


$ uname -a
HP-UX baloo B.11.23 U ia64 1194849711 unlimited-user license

$ which objdump
/usr/local/bin/objdump

$ objdump --version | head -1
GNU objdump 2.14 20030612

$ echo "int main() { return 0; }" > junk.c &&
cc junk.c && objdump -d a.out &&
cc +DD64 junk.c && objdump -d a.out

a.out: file format elf32-ia64-hpux-big

Disassembly of section .text:

040007a0 <main>:
40007a0: 19 50 40 19 3f 23 [MMB] adds r10=-48,r12
40007a6: 80 00 00 00 48 80 mov r8=0
40007ac: 00 00 84 02 br.ret.dptk.few b0;;

a.out: file format elf64-ia64-hpux-big

Disassembly of section .text:

4000000000000a80 <main>:
4000000000000a80: 19 50 40 19 3f 23 [MMB] adds r10=-48,r12
4000000000000a86: 80 00 00 00 48 80 mov r8=0
4000000000000a8c: 00 00 84 02 br.ret.dptk.few b0;;

> Question 3: (the real reason) is there a tool that tells us that 2
> binaries (executable or library) has changed, regardless of any
> timestamp?


Not to my knowledge.

The fact that you are asking this question tells me that you probably
need better revision control and/or automated build procedure.

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 07:03 PM
suuquan@sbcglobal.net
 
Posts: n/a
Default Re: disassembler or objdump for hpux 11.23 Itanium

Thanks,
but on my machine, /usr/local/bin/objdump does NOT exist.

Is there a swinstall depot I can get it from?

Also, about "need better revison control or automated procedure": I'm
too new at this company. Taking over a change request that was passed
on to me just because people think I can do it.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 07:03 PM
Paul Pluzhnikov
 
Posts: n/a
Default Re: disassembler or objdump for hpux 11.23 Itanium

suuquan@sbcglobal.net writes:

> Is there a swinstall depot I can get it from?


We didn't build it ourselves, so there must be some place we got
it from. I don't know what that place is though

Aha, this package has gcc-3.4.3 and binutils for ia64:
http://gatekeep.cs.utah.edu/ftp/hpux...11.23.depot.gz

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-16-2008, 07:04 PM
Ulrich Windl
 
Posts: n/a
Default Re: disassembler or objdump for hpux 11.23 Itanium

suuquan@sbcglobal.net writes:

> Hi all
>
> We need a disassembler for HP Itanium. The old gnu "objdump" that we
> have does not support Itanium ia64.
>
> Question 1: does hpux 11.23 for itanium has a disassembler we can use?


HP offers a Linux emulation (AFAIK). In Linux you could disassemble using gdb,
so maybe Linux' gdb will disassemble HP-UX binaries

Maybe you can just get a native gdb for HP-UX.

>
> Question 2: is there an "objdump" that can read ia64 formats.


"ELF64" is is in Linux, and AFAIK also in HP-UX

> > objdump -d /bin/ksh

> oobjdump: /bin/ksh: File format not recognized
>
> Question 3: (the real reason) is there a tool that tells us that 2
> binaries (executable or library) has changed, regardless of any
> timestamp?


md5sum, or tripwire ;-)

Regards,
Ulrich
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-16-2008, 07:04 PM
suuquan@sbcglobal.net
 
Posts: n/a
Default Re: disassembler or objdump for hpux 11.23 Itanium


Paul Pluzhnikov wrote:
> suuquan@sbcglobal.net writes:
>
> > Is there a swinstall depot I can get it from?

> Aha, this package has gcc-3.4.3 and binutils for ia64:
>

http://gatekeep.cs.utah.edu/ftp/hpux...11.23.depot.gz

Thanks, I'll ask the admin to swinstall it.
I'll let you know how that goes. It's Saturday.


> In order to understand recursion you must first understand recursion.


Good funny one. Who said it first? not Jessica Simpson I presume.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-16-2008, 07:06 PM
Himabindu Vuppula
 
Posts: n/a
Default Re: disassembler or objdump for hpux 11.23 Itanium

You can use gdb to disassemble on HP-UX.
You can download HP gdb for Itanium from www.hp.com/go/wdb

-Himabindu Vuppula


"Ulrich Windl" <Ulrich.Windl@RZ.Uni-Regensburg.DE> wrote in message
news:863bu1tq2f.fsf@pc8032.rz.uni-regensburg.de...
> suuquan@sbcglobal.net writes:
>
> > Hi all
> >
> > We need a disassembler for HP Itanium. The old gnu "objdump" that we
> > have does not support Itanium ia64.
> >
> > Question 1: does hpux 11.23 for itanium has a disassembler we can use?

>
> HP offers a Linux emulation (AFAIK). In Linux you could disassemble using

gdb,
> so maybe Linux' gdb will disassemble HP-UX binaries
>
> Maybe you can just get a native gdb for HP-UX.
>
> >
> > Question 2: is there an "objdump" that can read ia64 formats.

>
> "ELF64" is is in Linux, and AFAIK also in HP-UX
>
> > > objdump -d /bin/ksh

> > oobjdump: /bin/ksh: File format not recognized
> >
> > Question 3: (the real reason) is there a tool that tells us that 2
> > binaries (executable or library) has changed, regardless of any
> > timestamp?

>
> md5sum, or tripwire ;-)
>
> Regards,
> Ulrich



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:42 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com