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 index afd113c5fa7c5e..477adcd44e47d8 100644 --- 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 index eb79b385cc486e..b4faa9f5052a05 100644 --- a/compiler-rt/test/profile/Posix/lit.local.cfg.py +++ b/compiler-rt/test/profile/Posix/lit.local.cfg.py @@ -9,8 +9,8 @@ def getRoot(config): 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', ''))