AIX Open Source

 View Only
Expand all | Collapse all

objdump and objcopy in binutils package - unsupported swap_aux_in for storage class 0x8e

  • 1.  objdump and objcopy in binutils package - unsupported swap_aux_in for storage class 0x8e

    Posted Thu May 19, 2022 08:14 AM
    From the https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/binutils/binutils-2.37-2.aix6.1.ppc.rpm package I'm attempting to use the objdump and objcopy commands to extract the debug symbols from an executable.

    tescase.c:
    ================
    #include <stdio.h>

    int main(void)
    {
    printf("Hello world!\n");
    return 0;
    }
    ================

    I then build it as follows:
    /opt/IBM/xlc/16.1.0/bin/xlc_r -g -O2 -q64 -o testcase testcase.c

    And then run:
    objdump -d -l -S -w testcase > testcase.cod
    objcopy --only-keep-debug testcase testcase.dbg
    strip -X 32_64 -r testcase

    However, I get the following output:
    objdump: testcase: unsupported swap_aux_in for storage class 0x8e
    objcopy: testcase: unsupported swap_aux_in for storage class 0x8e
    objcopy: testcase.dbg: unsupported swap_aux_out for storage class 0x8e

    With more complicated shared libraries I actually get a failure where "bad value" is returned.

    Do objdump and objcopy need updating for the latest versions of AIX? I'm on AIX 7.2, using XLC 16.1.0.

    Kind regards,
    David

    ------------------------------
    David McCann
    IBM
    ------------------------------


  • 2.  RE: objdump and objcopy in binutils package - unsupported swap_aux_in for storage class 0x8e

    Posted Thu May 19, 2022 01:02 PM
    The binutils has not been tested for xlc generated binaries. Also it will be difficult to make it work with xlc.
    Can you try with gcc and see if you are still seeing same issues ? 
    Also I think it should work with xlcv17/openxl because that incorporates the LLVM compiler infrastructure.

    ------------------------------
    SANKET RATHI
    ------------------------------