Get the architecture register size of binaries


 
Thread Tools Search this Thread
Operating Systems Solaris Get the architecture register size of binaries
# 1  
Old 07-26-2010
Get the architecture register size of binaries

Hi,

How do we find out solaris unix server is holding 64 bit or 32 bit binaries. Anyone can guide me on this.thanks, regards.

Last edited by pludi; 07-27-2010 at 10:16 AM..
# 2  
Old 07-26-2010
You can check this with the 'file' command

Code:
# file /usr/bin/sh
/usr/bin/sh:    ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped

Depending on the application whether it was compiled for 64 or 32 bit ...

If you have a 'sparcv9' directory, these applications and binaries will be 64 bit.
eg.

Code:
# file /usr/lib/sparcv9/lib300.so
/usr/lib/sparcv9/lib300.so:     ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped, no debugging information available

Code:
# file /usr/jdk/latest/jre/bin/sparcv9/java
/usr/jdk/latest/jre/bin/sparcv9/java:   ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, stripped
# file /usr/jdk/latest/jre/bin/java
/usr/jdk/latest/jre/bin/java:   ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped

# 3  
Old 07-27-2010
thanks for your immediate reply. Appreciated.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Migration of binaries from SunOS 5.5.1 to 5.11

HI, I have binary files that were generated on SUnOS 5.5.1 some years back. These programs were written in C. I want to run them on SunOS 5.11 (latest version of SunOS). Can I run them directly or will there be any porting challenges? (1 Reply)
Discussion started by: rajujayanthy
1 Replies

2. Infrastructure Monitoring

Nagios binaries for AIX 7.1

Hello All, I am new to Nagios. I have a requirement to monitor AIX 7.1 using Nagios xi, could any one guide me steps to go in right direction. I know Nagios doesn't have precompiled agent and plugin for aix 7.1. Appreciate your help (1 Reply)
Discussion started by: bsivavani
1 Replies

3. Linux

nmap binaries for linux

Hi , I am exploring the nmap utility for Linux. I know that, nmap binaries are specific to the platforms e.g. nmap binaries will be diferent for Windows , AIX , Solaris and Linux platforms. Can anyone tell me , will the nmap binaries be different for different flavours of Linux such as... (1 Reply)
Discussion started by: jatin56
1 Replies

4. UNIX for Dummies Questions & Answers

Stripping down binaries

Hello, I am the CEO of Grand Tech Corporation. We are launching Linux NT and forgive me, but I do not know how to strip binaries down in Mandriva Linux. Can someone tell me a way to?:b: (2 Replies)
Discussion started by: Linux NT
2 Replies

5. Solaris

How to compare binaries

I have the same two source files. They MUST be compiled with -g debugger option. The binaries are different. But in fact the binaries work the same. How to compare them to know the are compiled using the same source code. In Linux it is enough to: strip --strip-all <file> and diff shows no... (2 Replies)
Discussion started by: mblank
2 Replies

6. UNIX for Dummies Questions & Answers

FTP is corrupting binaries

I'm ftping some binaries from a centos box to an old DEC machine. They're being transferred in bin, but they're being corrupted somehow because when I run file filename on the centos machine, it shows that it's an executable. But after the ftp and running the same command on the DEC, the file... (5 Replies)
Discussion started by: krisl
5 Replies

7. Solaris

compare two binaries.

Dear I want to know how i can compare between two binaries by using check sum command. (2 Replies)
Discussion started by: abu_hassan
2 Replies

8. HP-UX

Binaries/Depot for Subversion 1.4.3 for HP/UX 11.11

Could anyone help me out by providing binaries/depot for subversion 1.4.3? The hpux version is: HP-UX myhappybox B.11.11 U 9000/800 I am having trouble compiling the sources for hpux, the provided dependancies are extracted, but it continually falls over. We have previously had svn... (3 Replies)
Discussion started by: spud
3 Replies

9. UNIX for Dummies Questions & Answers

Windows Binaries

This is probably a really stupid question: Why doesnt windows binaries run in *nix? Is it the filesystem? or what? //Maestin (3 Replies)
Discussion started by: Maestin
3 Replies
Login or Register to Ask a Question