Since the sysroots are strictly for linking, the shared objects should be stubbed.
A quick experiment using llvm-ifs showed some errors when trying to stub some libraries, notably glibc. Something like objcopy --strip-all --remove-section=.rodata --remove-section=.text --remove-section=.data appears to work.