Skip to content

AIX: Export symbols from IBMClang IPA objects

William Marlow requested to merge (removed):ibmclang-ipa-exports into master

When interprocedural analysis is enabled on the IBMClang family of compilers (via the -flto option) then the resulting object files contain LLVM IR rather than XCOFF objects (reference).

ExportImportList needs to detect LLVM IR objects and use the ibm-llvm-nm tool that ships with the compiler to create the extract the defined symbols.

Without this change, such objects result in an error message from dump and no symbols being exported from the object file.

Merge request reports