binary conversion


 
Thread Tools Search this Thread
Operating Systems Solaris binary conversion
# 1  
Old 09-11-2011
binary conversion

Why would a binary which was compiled on a Solaris-10 not be runnable in a SunOS 5.10? (they are supposed to be precisely equivalent).

When I run the file command on it, it says:

ELF 32-bit LSB executable 80386 Version 1, dynamically linked, not stripped, no debugging information available

The only difference is that it is built on an x86 machine as can be seen above and the target machine which it fails to run in is a SPARC, why should that make a difference, if there are NO system calls? (OS is same!!)

Is there anyway on the source mahcine I can make it in such a way as to be able to run on the SPARC machine? (NOte: I cannot build it on target machine, long story - previous post).

Thanks.

Last edited by steve701; 09-11-2011 at 01:06 AM.. Reason: missing a word
# 2  
Old 09-11-2011
The machine code and architecture of the cpus differ. The presence or absence of system calls is irrelevant.

Regards,
Alister
# 3  
Old 09-11-2011
Build a SPARC toolchain on the x86 machine. It's a pain in the butt, and i've never done it on solaris, but they use gcc nowadays right?
# 4  
Old 09-11-2011
Sparc toolchain? never heard of it although it sounds interesting...can you send me details/sites where/how I can do this? otherwise I am going to start wasting time on the Net to find out the long way, thx.
# 5  
Old 09-11-2011
Here is a link:
How to Cross-Compile GCC for SPARC Solaris

Good luck if you go that route ...
This User Gave Thanks to jlliagre For This Post:
# 6  
Old 09-11-2011
Yikes thanks dude. I'll give it a read then a shot.

just to confirm, this thing is dynamic right? in the sense that it can have source/target from any machine to any machine and dynamically set as it appears by env variables? forinstance I can set it to go from x86 to a SPARC sunos 5.10 ?
# 7  
Old 09-11-2011
Yes, or at least that's the theory. You mileage may vary.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Conversion of Binary csv file

Hello, I have a binary csv file that was created on 'Red Hat Enterprise Linux Server release 6.6'. Now we have transferred all files on Ubuntu 16.04.2 LTS/xenial On opening the file in Ubuntu, there are special characters ... (8 Replies)
Discussion started by: nans
8 Replies

2. Shell Programming and Scripting

Conversion from Hexadecimal to binary

How can I convert hexadecimal values to Binary from the second field to the end Input: WS-2 23 345 235 DT-3 45 4A3 000 pp-2 76 300 E4 Output: WS-2 100011 1101000101 1000110101 DT-3 1000101 10010100011 000 pp-2 1110110 1100000000 11100100 (16 Replies)
Discussion started by: aydj
16 Replies

3. Shell Programming and Scripting

Hexadecimal to Binary conversion

Hi Guys, Is it possible to convert the hexadecimal to Binary by unix command.....I could not figure out.... If I need to convert AF6D to binary...what could be the way to do? Thanks in advance!! ---------- Post updated at 02:57 AM ---------- Previous update was at 02:42 AM ---------- I... (6 Replies)
Discussion started by: Indra2011
6 Replies

4. Shell Programming and Scripting

binary to ascii conversion

Hi, I have got a library file, created by compiling C code. The file information with "file" command, gives it a "application/x-archive" type file. I want to extract the release string of my software from this file, so that i can know which version of C files were used to create the lib. Can... (3 Replies)
Discussion started by: atulmt
3 Replies

5. Shell Programming and Scripting

binary file conversion

Hello folks, i have a binary text file but i am not able to convert into text format, please suggest. thanks. (2 Replies)
Discussion started by: learnbash
2 Replies

6. Programming

Binary conversion function

Is/are there any function(s) in C that convert(s) character/ASCII/Decimal to binary and vice versa? what about bcopy and strcpy? (1 Reply)
Discussion started by: Peevish
1 Replies

7. SCO

ascii to binary conversion in sco 5.0.5

Here is what I did . . . . I FTP'd several *.dbf zipped files from a SCO 5.0.5 server to winXP machine, and did not set the transfer mode to BIN, now when i was uncompressing these files in SCO 5.0.5 , it was giving "Bad Decode Table error. Is there a way to convert the *.dbf.Z files to Binary so... (1 Reply)
Discussion started by: sameek1211
1 Replies

8. UNIX for Dummies Questions & Answers

Binary file conversion

All, I want to convert multiple \0 005 characters to line feed 012 character in a binary file to make to readable. Here is the sample od -c file output: 0000000 254 355 \0 005 s r \0 * c o m . c i s c Here is the sample od -b file output: 0000000 254 355 000... (0 Replies)
Discussion started by: bubba112557
0 Replies

9. Shell Programming and Scripting

shell script conversion to binary

My question is: i have a script called getevent to run i just call ./getevent can i convert this to make it binary executable and not letting my clients open it and see the code.??:( I am using Solaris 8. (3 Replies)
Discussion started by: bcheaib
3 Replies

10. Programming

Binary to text format conversion

Hi, Please can any one tell me how to convert binary data to text format and vice versa. If possible give me the algorithm or C program. Thanks in advance Waiting for reply Bye:o (5 Replies)
Discussion started by: manjunath
5 Replies
Login or Register to Ask a Question