LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 11-10-2008, 04:17 AM   #1
Lakki
Member
 
Registered: Jul 2008
Posts: 32

Rep: Reputation: 15
Lightbulb Need to run COFF under RHEL 5.0


We have an COFF binary file created under SCO. We wish to run the same exe under RHEL 5.0.

Using objcopy utility, we can convert an ELF or COFF format executable into an S-record or Intel I-Hex format file.
This we did using "objcopy -I binary -O srec <input file> <output-file>"
But again we didnt find a way to convert the srec to elf file format.

As we want to convert the binary to ELF32, a binary file compatible under linux, we used the command "objcopy -I coff -O elf32 <input file> <output-file>"
But this throws an error "Invalid bfd target"

Please let us know the command for any of the following two conversions:
1. COFF to ELF
2. SREC to ELF
We wish to execute the binaries in RHEL 5.0

Thanks for your help
 
Old 11-23-2008, 11:01 AM   #2
linest
LQ Newbie
 
Registered: Sep 2008
Posts: 23

Rep: Reputation: 1
Quote:
Originally Posted by Lakki View Post
We have an COFF binary file created under SCO. We wish to run the same exe under RHEL 5.0.

Using objcopy utility, we can convert an ELF or COFF format executable into an S-record or Intel I-Hex format file.
This we did using "objcopy -I binary -O srec <input file> <output-file>"
But again we didnt find a way to convert the srec to elf file format.

As we want to convert the binary to ELF32, a binary file compatible under linux, we used the command "objcopy -I coff -O elf32 <input file> <output-file>"
But this throws an error "Invalid bfd target"

Please let us know the command for any of the following two conversions:
1. COFF to ELF
2. SREC to ELF
We wish to execute the binaries in RHEL 5.0

Thanks for your help
Ouch, stuff like this gets painful. There used to be an ibcs package that would do this, but I can't find any trace of it under RHEL 5.2. Google indicates potential license problems with SCO. Looks as though it's been supplanted by:

http://linux-abi.sourceforge.net/

Patches for Linux ABI are apparently not included by Red Hat:
http://lists.us.dell.com/pipermail/l...er/010612.html
http://ace-host.stuart.id.au/russell/files/linux-abi/

It looks like this can be done, but it's not for the faint of heart. Or for those who are expecting a support agreement to be honored by their vendor. Maybe I'm being redundant.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to have virtual machine in RHEL 5.1 run RHEL 4.0-1 ES (64-bit) maryjane Linux - Newbie 1 10-20-2008 12:04 PM
How to get COFF Format in linux manas_sem Programming 1 07-13-2007 02:36 AM
How to get COFF Format in linux manas_sem Programming 1 07-13-2007 02:09 AM
How to run COFF executable in current distro? TimSNL Linux - General 1 01-28-2005 02:37 PM
iBCS/COFF under Mandrake 9.0 breany Linux - Software 0 10-28-2002 08:29 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 01:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration