Problem:
A customer has migrated to Server Express SuSE SLES 9 X86_64 from OCDS and is re-linking their application. They receive the following error regarding a file BS.o
cob32: error reading: BS.o
Resolution:
This is a portability issue and actually related to more than just the one object file. The first file to be processed threw the error.
On examination, the object origin was from a different chipset; MIPS ELF not INTEL ELF.
# cob -xve "" -o myrts BS.o
cob32 -C nolist -xve -o myrts BS.o
cob32: error reading: BS.o
# file BS.o
BS.o: ELF 32-bit MSB MIPS-I relocatable, MIPS, version 1 (SYSV), not stripped
Using the locking demo:
# file stockioa.o
stockioa.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped
# cob -xve "" -o myrts stockioa.o
cob32 -C nolist -xve -o myrts stockioa.o
Entry points defined in module: stockioa.o
stockioa
STOCKIOA