Skip to content

Commit fed7473

Browse files
author
Mark McCaskey
committed
Link GDB JIT exposed global and fn as "linkonce"
This is required because LLVM exposes its own
1 parent 3691c80 commit fed7473

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/runtime-core/src/jit_debug.rs

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use std::sync::{Arc, Mutex};
1515
// Implementation of this function is derived from wasmtime and is licensed under
1616
// the Apache 2.0 license. See ATTRIBUTIONS.md for full license and more
1717
// information.
18+
#[linkage="linkonce"]
1819
#[no_mangle]
1920
#[inline(never)]
2021
extern "C" fn __jit_debug_register_code() {
@@ -80,6 +81,7 @@ struct JitDebugDescriptor {
8081
/// The data is in the form of a doubly linked list. This global variable acts
8182
/// as a head node with extra information about the operation that we want the
8283
/// debugger to perform.
84+
#[linkage="linkonce"]
8385
#[no_mangle]
8486
#[allow(non_upper_case_globals)]
8587
static mut __jit_debug_descriptor: JitDebugDescriptor = JitDebugDescriptor {

0 commit comments

Comments
 (0)