IBM Support

LI78422: DWARF DEBUG INFO INFLATING OBJECT FILE SIZE

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When generating object files with debug information in the DWARF
    format, the files generated are much larger than files using the
    stabstring debug format.
    
    In general, DWARF debug information is typically larger than
    stabstring debug information.  However in this case, object
    files with DWARF debug info are sometimes 10 times or more the
    size of stabstring object files.
    
    
    
        === TEST CASE ===
    
    int main()
    {
            return 5;
    }
    
    
    > xlc -c -g test.c -qdbgfmt=dwarf      -o test.dwarf.o
    > xlc -c -g test.c -qdbgfmt=stabstring -o test.stabstring.o
    > ls -l
    -rw-r-----    1      26  test.c
    -rw-r-----    1   22963  test.dwarf.o
    -rw-r-----    1    1275  test.stabstring.o
    >
    

Local fix

  • NA
    

Problem summary

  • USERS AFFECTED:
    DWARF usersPROBLEM DESCRIPTION:
    Compiling files with '-g -qdbgfmt=dwarf' will result in DWARF
    debug info that massively inflates object file size.
    
    USERS AFFECTED:
    DWARF users
    

Problem conclusion

  • When the compiler internally generates the object file layout,
    the size footprint occupies more space than needed, which makes
    the resulting object file much larger when generating DWARF
    debug information.  The issue has been corrected, and smaller
    object files will be seen.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI78422

  • Reported component name

    XL C/C++ FOR LI

  • Reported component ID

    5725C7300

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-02-25

  • Closed date

    2015-02-25

  • Last modified date

    2015-02-25

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

    IV67196

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

Fix information

  • Fixed component name

    XL C/C++ FOR LI

  • Fixed component ID

    5725C7300

Applicable component levels

  • RD10 PSY

       UP



Document information

More support for: XL C/C++ for Linux
Compiler

Software version: 13.1

Reference #: LI78422

Modified date: 25 February 2015