We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ff055d commit e282b22Copy full SHA for e282b22
src/libstd/sys/unix/args.rs
@@ -78,6 +78,8 @@ mod imp {
78
ARGV = argv;
79
}
80
81
+ /// glibc passes argc, argv, and envp to functions in .init_array, as a non-standard extension.
82
+ /// This allows `std::env::args` to work even in a `cdylib`, as it does on macOS and Windows.
83
#[cfg(all(target_os = "linux", target_env = "gnu"))]
84
#[used]
85
#[link_section = ".init_array.00099"]
0 commit comments