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
------------------------------