nikic wrote: An ld.bfd/ld.gold behavior difference that required a change to thinlto.ll is that `ld.bfd` will always create the (empty) output file, even if `--plugin-opt=thinlto-index-only` is used. I don't think there is any way to influence this behavior. https://github.com/llvm/llvm-project/pull/130981