We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a130861 commit 472b618Copy full SHA for 472b618
src/libstd/rt/crate_map.rs
@@ -56,7 +56,12 @@ pub fn get_crate_map() -> Option<&'static CrateMap<'static>> {
56
57
let sym = unsafe {
58
let module = dl::open_internal();
59
- let sym = do "__rust_crate_map_toplevel".with_c_str |buf| {
+ let rust_crate_map_toplevel = if cfg!(target_arch = "x86") {
60
+ "__rust_crate_map_toplevel"
61
+ } else {
62
+ "_rust_crate_map_toplevel"
63
+ };
64
+ let sym = do rust_crate_map_toplevel.with_c_str |buf| {
65
dl::symbol(module, buf)
66
};
67
dl::close(module);
0 commit comments