This is driver bug. With -flto-partition=none it for whatever reason forgets about -fresolution:
../lto1 -quiet -dumpdir ./ -dumpbase prog -mtune=generic -march=x86-64 -auxbase-strip /tmp/cctgIO6R.lto.o -version -flto-partition=none -fuse-linker-plugin -fwhole-program -fdump-ipa-all-details @/tmp/ccpDD04R -o foo.s