Skip to content

Commit caa5a6f

Browse files
authored
Merge pull request torvalds#656 from wedsonaf/init-array
rust: use `.init_array` instead of `.ctors` in `init_static_sync`
2 parents 29fd422 + 0f8f4b6 commit caa5a6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/sync/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ macro_rules! init_static_sync {
120120
$(
121121
$(#[$outer])*
122122
$v static $id: $t = {
123-
#[link_section = ".ctors"]
123+
#[link_section = ".init_array"]
124124
#[used]
125125
static TMP: extern "C" fn() = {
126126
extern "C" fn constructor() {

0 commit comments

Comments
 (0)