Besides just generating and consuming the lists, this includes:
- Calling nm with the right options in extract_symbols.py. Such as not demangling C++ names, which AIX nm does by default, and accepting both 32/64-bit names.
- Not having nm sort the list of symbols or we may run in to memory issues on debug builds, as nm calls a 32-bit sort.
- Defaulting to having LLVM_EXPORT_SYMBOLS_FOR_PLUGINS on for AIX
- CMake versions prior to 3.16 set the -brtl linker flag globally on AIX. Clear it out early on so we don't run into failures. We will set it as needed.
Do we risk variance in the configuration here if we leave the CMake default -brtl in CMAKE_EXE_LINKER_FLAGS when the version is less than 3.16? If we want that -brtl, then I'm also not sure I understand where we are adding it for CMake >= 3.16.