Quote:
Originally Posted by Lakki
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.