A reference to __real_foo should trigger archive extraction of the input file that defines foo, otherwise a link using --wrap=foo might fail to link with an undefined reference to foo. This matches bfd linker behaviour. Differential Revision: https://reviews.llvm.org/D135897