Index: compiler-rt/test/profile/Posix/instrprof-get-filename-merge-mode.c =================================================================== --- compiler-rt/test/profile/Posix/instrprof-get-filename-merge-mode.c +++ compiler-rt/test/profile/Posix/instrprof-get-filename-merge-mode.c @@ -1,6 +1,6 @@ // Test __llvm_profile_get_filename when the on-line merging mode is enabled. // -// RUN: %clang_pgogen -fPIC -shared -o %t.dso %p/../Inputs/instrprof-get-filename-dso.c +// RUN: %clang_pgogen -fPIC -shared %shared_linker_xopts -o %t.dso %p/../Inputs/instrprof-get-filename-dso.c // RUN: %clang_pgogen -o %t %s %t.dso // RUN: env LLVM_PROFILE_FILE="%t-%m.profraw" %run %t Index: compiler-rt/test/profile/Posix/lit.local.cfg.py =================================================================== --- compiler-rt/test/profile/Posix/lit.local.cfg.py +++ compiler-rt/test/profile/Posix/lit.local.cfg.py @@ -7,3 +7,10 @@ if root.host_os in ['Windows']: config.unsupported = True + +# AIX usually usually makes use of an explicit export list when linking a shared +# object, but for the purposes of these tests just export all symbols. +if root.host_os in ['AIX']: + config.substitutions.append(('%shared_linker_xopts', '-Wl,-bexpfull')) +else: + config.substitutions.append(('%shared_linker_xopts', ''))