IBM Support

IV68486: LINKER ERROR WHEN COMPILING WITH -QDBGFMT=DWARF AND -QTUNE=PWR5/PWR7

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • After compiling source with DWARF debug information (via
    -qdbgfmt=dwarf) and using the -qtune option for pwr5 or pwr7,
    the resulting object file is encountering a linker error when
    linked.
    
    
       === TEST CASE ===
    
    struct test {
        int first, second, thrid[57474], forth;
    } myStruct ;
    int test1(void) { return 1; }
    int test2(void) { return 1; }
    
    
    $ xlc -g -qdbgfmt=dwarf -qtune=pwr7 -c test.c
    $ ld -r -o z.o test.o
    ld: 0711-596 SEVERE ERROR: Object test.o
            An RLD for section 9 (.dwpbtyp) refers to symbol 128,
            but the storage class of the symbol is not C_EXT or
    C_HIDEXT.
    $
    

Local fix

  • Use -qdbgfmt=stabstring instead of DWARF
    

Problem summary

  • PROBLEM DESCRIPTION:
    When using -g -qdbgfmt=dwarf the compiler might generate
    incorrect relocation code for the DWARF section in the object
    file.
    
    USERS AFFECTED:
    AIX DWARF debug format users.
    

Problem conclusion

  • The issue has been corrected.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV68486

  • Reported component name

    XL C/C++ FOR AI

  • Reported component ID

    5725C7200

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-01-13

  • Closed date

    2015-05-25

  • Last modified date

    2015-05-25

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

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

Fix information

  • Fixed component name

    XL C FOR AIX

  • Fixed component ID

    5725C7100

Applicable component levels

  • RC10 PSY

       UP



Document information

More support for: XL C for AIX
Compiler

Software version: 12.1

Reference #: IV68486

Modified date: 25 May 2015