https://github.com/ldionne approved this pull request. Sorry for taking so long to review this. It basically LGTM but I'd like to simplify the code a bit by assuming that the mapfile exists when we're on Darwin. https://github.com/llvm/llvm-project/pull/75623