Skip to content

Commit 4da40fe

Browse files
authored
Add unsafe to more extern "C" blocks. (#162)
1 parent 9846d36 commit 4da40fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/program/linux_raw.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub(super) unsafe extern "C" fn entry(mem: *mut usize) -> ! {
112112

113113
// The linker-generated symbols that mark the start and end of the
114114
// `.init_array` section.
115-
extern "C" {
115+
unsafe extern "C" {
116116
static __init_array_start: c_void;
117117
static __init_array_end: c_void;
118118
}
@@ -307,7 +307,7 @@ pub fn exit(status: c_int) -> ! {
307307

308308
// The linker-generated symbols that mark the start and end of the
309309
// `.fini_array` section.
310-
extern "C" {
310+
unsafe extern "C" {
311311
static __fini_array_start: c_void;
312312
static __fini_array_end: c_void;
313313
}

0 commit comments

Comments
 (0)