How to determine if a HP-UX executable is a 32 or 64 bit object file

From Wiki-UX.info
Jump to: navigation, search

Abstract

It may be necesary to determine if a HP-UX executable is compile as a 32 or 64 bit binary. The file command will return the necesary information to that purpose

HP-9000 (PA-RISC)

32 bit object:

$ file /usr/bin/cp
/usr/bin/cp:    PA-RISC1.1 shared executable dynamically linked -not stripped dynamically linked


64 bit object:

$ file /stand/vmunix
/stand/vmunix:  ELF-64 executable object file - PA-RISC 2.0 (LP64)

Integrity (IA64)

32 bit application":

$ file /usr/bin/cp
/usr/bin/cp:    ELF-32 executable object file - IA64


64 bit object:

$ file /stand/vmunix
/stand/vmunix:  ELF-64 executable object file - IA64

Reference

  • HP-UX Reference - file(1) - HP-UX 11i Version 3: February 2007

Authors