diff --git a/compiler-rt/test/profile/Posix/instrprof-get-filename-merge-mode.c b/compiler-rt/test/profile/Posix/instrprof-get-filename-merge-mode.c --- a/compiler-rt/test/profile/Posix/instrprof-get-filename-merge-mode.c +++ b/compiler-rt/test/profile/Posix/instrprof-get-filename-merge-mode.c @@ -1,5 +1,6 @@ // Test __llvm_profile_get_filename when the on-line merging mode is enabled. // +// RUN: echo get_filename_from_DSO > shr.exp // 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 diff --git a/compiler-rt/test/profile/Posix/lit.local.cfg.py b/compiler-rt/test/profile/Posix/lit.local.cfg.py --- a/compiler-rt/test/profile/Posix/lit.local.cfg.py +++ b/compiler-rt/test/profile/Posix/lit.local.cfg.py @@ -9,8 +9,8 @@ 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. +# object, since the linker doesn't export anything by default. if root.host_os in ['AIX']: - config.substitutions.append(('%shared_linker_xopts', '-Wl,-bexpfull')) + config.substitutions.append(('%shared_linker_xopts', '-Wl,-bE:shr.exp')) else: config.substitutions.append(('%shared_linker_xopts', ''))