Howard West
2004-06-23 20:42:07 UTC
I am working on a box installed with SCO OpenServer 5.0.2 and gcc
2.95.2 from the Skunkware CDs.
I was previously having trouble getting my files built because of a
missing assembler, but that problem has been corrected due to
information helpfully provided by this group.
I am now able to build my projects, but I cannot run them. The system
returns the message "cannot execute" when I attempt to run it from the
command line.
When I attempt to load it into gdb (GDB 4.16
(i586-unknown-sco3.2v5.0.2)), I get the message:
"/u/bmc/users/hwest/agent_code/PROJECTS/Unix/exe/SCO-3/p_ctscs": not
in executab
le format: File format not recognized
It occurs to me that this might have something to do with file format
differences (COFF vs ELF) but I have no hard evidence, only suspicion.
I've tried passing the switch "-mcoff" to gcc to force COFF output,
but from when I can see by dumping the output files, they are still
being generated in ELF format.
Can anyone suggest a possible approach to resolving this or even a
possibly fruitful line of inquiry I might pursue in figuring this out?
2.95.2 from the Skunkware CDs.
I was previously having trouble getting my files built because of a
missing assembler, but that problem has been corrected due to
information helpfully provided by this group.
I am now able to build my projects, but I cannot run them. The system
returns the message "cannot execute" when I attempt to run it from the
command line.
When I attempt to load it into gdb (GDB 4.16
(i586-unknown-sco3.2v5.0.2)), I get the message:
"/u/bmc/users/hwest/agent_code/PROJECTS/Unix/exe/SCO-3/p_ctscs": not
in executab
le format: File format not recognized
It occurs to me that this might have something to do with file format
differences (COFF vs ELF) but I have no hard evidence, only suspicion.
I've tried passing the switch "-mcoff" to gcc to force COFF output,
but from when I can see by dumping the output files, they are still
being generated in ELF format.
Can anyone suggest a possible approach to resolving this or even a
possibly fruitful line of inquiry I might pursue in figuring this out?