From 1ff055d875d0a3b19e0567a7e1cc6a2ee1a7921a Mon Sep 17 00:00:00 2001 From: leo60228 Date: Thu, 21 Nov 2019 11:44:22 -0500 Subject: [PATCH] Set .init_array priority I'm not entirely sure *why*, but this fixed a problem I was having. --- src/libstd/sys/unix/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/sys/unix/args.rs b/src/libstd/sys/unix/args.rs index 4dd331d3130..209c5c542bc 100644 --- a/src/libstd/sys/unix/args.rs +++ b/src/libstd/sys/unix/args.rs @@ -80,7 +80,7 @@ mod imp { #[cfg(all(target_os = "linux", target_env = "gnu"))] #[used] - #[link_section = ".init_array"] + #[link_section = ".init_array.00099"] static ARGV_INIT_ARRAY: extern "C" fn( crate::os::raw::c_int, *const *const u8,