000026292 - How to determine whether a library file is 32-bit or 64-bit

Document created by RSA Customer Support Employee on Jun 14, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000026292
Applies ToRSA Key Manager Client
RSA Data Protection Manager Client
IssueHow to determine whether a library file is 32-bit or 64-bit
ResolutionUse the "file" command, e.g. for a file named libLBJNIWrappers.so:

Linux:
> file libLBJNIWrappers.so
libLBJNIWrappers.so: ELF 64-bit LSB shared object, IA-64, version 1 (SYSV), stripped

This shows that the file format is IA-64. 

> file libLBJNIWrappers.so
libLBJNIWrappers.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), stripped

This shows that the file format is x86-64.

AIX:
> file libLBJNIWrappers.so
libLBJNIWrappers.so: executable (RISC System/6000) or object module

means 32-bit

> file libLBJNIWrappers.so
libLBJNIWrappers.so: 64-bit AIX executable or object module not stripped

means 64-bit
Legacy Article IDa60318

Attachments

    Outcomes