librustc: Add export_name attribute to specify symbol name.

Fixes #8735.