Skip to main content

This article describes how to resolve error ld: 0711-596 SEVERE ERROR.

Problem:

Creating an executable from a mixture of COBOL source and pre-compiled C objects results in an error "ld: 0711-596 SEVERE ERROR." A command line example would look like this:
cob -x myprog.cbl cprog.o

Error message:

ld: 0711-596 SEVERE ERROR: Object cprog.o
An RLD for section 2 (.data) refers to symbol 22,
but the storage class of the symbol is not C_EXT or C_HIDEXT.

Resolution:

The problem is with the C object file. In this case, the cause is a corruption in the object file, possibly from FTP-ing it between systems in ASCII rather than BINARY mode.

Incident Number: 2262147

Old KB# 14177