Reported the same here: https://github.com/mmastrac/rust-ctor/issues/290 Replacing `#[link_section="__DATA,__mod_init_func"]` with `#[link_section="__DATA_CONST,__mod_init_func"]` resolves the error.