This is an archive of the discontinued LLVM Phabricator instance.

[test-suite][AIX] Disable SingleSource/UnitTests/2007-04-25-weak on AIX.
ClosedPublic

Authored by amyk on Dec 7 2021, 1:57 PM.

Details

Summary

For input into the static linker, it is not possible to encode within an XCOFF object file
that the symbol is to be weakly linked. The AIX mechanism for symbols that may remain
unresolved after initial runtime linking requires the link step to be modified.
Additionally, the resolution of such deferred imports is less automatic on AIX.

As such, SingleSource/UnitTests/2007-04-25-weak test is currently not expected to
pass on AIX, so this patch disables building it and running on AIX.

Diff Detail

Repository
rT test-suite

Event Timeline

amyk created this revision.Dec 7 2021, 1:57 PM
amyk requested review of this revision.Dec 7 2021, 1:57 PM

The change seems fine but would you mind adding the reason why this test is not expected to pass on AIX in the description?

amyk edited the summary of this revision. (Show Details)Dec 10 2021, 12:01 PM

The change seems fine but would you mind adding the reason why this test is not expected to pass on AIX in the description?

Thanks @ZarkoCA. I've updated the description and hopefully it is more clear. FYI @hubert.reinterpretcast.

ZarkoCA accepted this revision.Dec 10 2021, 1:14 PM

Thanks, LGTM.

This revision is now accepted and ready to land.Dec 10 2021, 1:14 PM