The source project of this merge request has been removed.
AIX: Export symbols from IBMClang IPA objects
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.