IBM Support

LI71664: WHEN -BMAXDATA:0X80000000 IS USED, COMPILER DOES NOT PASS RIGHT -BPD VALUE TO THE LINKER.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When -bmaxdata:0x80000000 is used, compiler does not pass right
    -bpD value to the linker. According to option32_bmaxdata row (in
    DEFLT stanza of /etc/vac/cfg), -bpD:0x30000000 option should be
    passed to linker instead of -bpD:20000000 (which is the default
    value).
    
    test-case
    ----------
    
    $ cat mytest.c
    int main() {}
    $
    
    $ xlc -v -q32 -bmaxdata:0x80000000 mytest.c
    exec: export(export,XL_CONFIG=/etc/vac.cfg:xlc,NULL)
    exec:
    /usr/vac/exe/xlcentry(/usr/vac/exe/xlcentry,-D_AIX,-D_AIX32,-D_A
    IX41,-D
    AIX43,-D_AIX50,-D_AIX51,-D_AIX52,-D_IBMR2,-D_POWER,-qansialias,-
    qnolm,-q
    32,-omytest.o,mytest.c,/tmp/xlcW0sgAbaa,/tmp/xlcW1sgAbab,/dev/nu
    ll,mytes t.lst,/dev/null,/tmp/xlcW2smAbac,NULL)
    exec: export(export,XL_BACKEND=/usr/vac/exe/xlCcode,NULL)
    exec: export(export,XL_LINKER=/bin/ld,NULL)
    exec: export(export,XL_DIS=/usr/vac/exe/dis,NULL)
    exec:
    /usr/vac/exe/xlCcode(/usr/vac/exe/xlCcode,-qansialias,-qnolm,/tm
    p/xlcW0s
    gAbaa,/tmp/xlcW1sgAbab,mytest.o,mytest.lst,/tmp/xlcW2smAbac,NULL
    )
    exec:
    /bin/ld(/bin/ld,-b32,/lib/crt0.o,-bpT:0x10000000,-bpD:0x20000000
    ,-bmaxda
    ta:0x80000000,mytest.o,-L/usr/lpp/xlopt,-lxlopt,-lc,NULL)
    unlink: mytest.o
    unlink: /tmp/xlcW0sgAbaa
    unlink: /tmp/xlcW1sgAbab
    unlink: /tmp/xlcW2smAbac
    $
    

Local fix

  • N/A
    

Problem summary

  • Same As submitter's text
    

Problem conclusion

  • Use -bpD:0x30000000 with -bmaxdata:0x80000000 in 32 bit mode
    

Temporary fix

  • Specify the option -bpD:0x30000000 explicitly
    

Comments

APAR Information

  • APAR number

    LI71664

  • Reported component name

    XL C/C++ RHEL4

  • Reported component ID

    5724K7720

  • Reported release

    701

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2006-10-25

  • Closed date

    2006-10-25

  • Last modified date

    2006-10-25

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

    IY74101

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

Fix information

  • Fixed component name

    XL C/C++ RHEL4

  • Fixed component ID

    5724K7720

Applicable component levels

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSJT9L","label":"XL C\/C++"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0.1","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
16 October 2021