IBM Support

IV67274: BAD .O FILE GENERATED BY COMPILER

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When trying to link the generated .o file, it issues the
    following error:
    ld: 0711-596 SEVERE ERROR: Object test.o
            An RLD for section 2 (.data) refers to symbol 0,
            but the storage class of the symbol is not C_EXT or
    C_HIDEXT.
    

Local fix

  • N/A
    

Problem summary

  • USERS AFFECTED:
    XLC/C++ users who write 'Labels as Values' code may encounter
    this issue.
    
    PROBLEM DESCRIPTION:
    The compiler will generate incorrect .o file for 'Labels as
    Values' code; and will be exposed as a linker error.
    

Problem conclusion

  • The compiler has some issue handling 'Labels as Values' code
    especially when putting same 'label value' as initialization
    value of consequent array element.
    This has been fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV67274

  • Reported component name

    XL C/C++ FOR AI

  • Reported component ID

    5725C7200

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-11-26

  • Closed date

    2015-04-29

  • Last modified date

    2015-04-29

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    LI78475

Fix information

  • Fixed component name

    XL C FOR AIX

  • Fixed component ID

    5725C7100

Applicable component levels

  • RD10 PSY

       UP



Document information

More support for: XL C for AIX
Compiler

Software version: 13.1

Reference #: IV67274

Modified date: 29 April 2015