librustc: Respect #[link_name] on extern statics. Fixes #9270
auto merge of #9272 : luqmana/rust/esln, r=catamorphism

Fixes #9270