Skip to content

Commit

Permalink
Link GDB JIT exposed global and fn as "linkonce"
Browse files Browse the repository at this point in the history
This is required because LLVM exposes its own
  • Loading branch information
Mark McCaskey committed Feb 27, 2020
1 parent 3691c80 commit fed7473
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/runtime-core/src/jit_debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use std::sync::{Arc, Mutex};
// Implementation of this function is derived from wasmtime and is licensed under
// the Apache 2.0 license. See ATTRIBUTIONS.md for full license and more
// information.
#[linkage="linkonce"]
#[no_mangle]
#[inline(never)]
extern "C" fn __jit_debug_register_code() {
Expand Down Expand Up @@ -80,6 +81,7 @@ struct JitDebugDescriptor {
/// The data is in the form of a doubly linked list. This global variable acts
/// as a head node with extra information about the operation that we want the
/// debugger to perform.
#[linkage="linkonce"]
#[no_mangle]
#[allow(non_upper_case_globals)]
static mut __jit_debug_descriptor: JitDebugDescriptor = JitDebugDescriptor {
Expand Down

0 comments on commit fed7473

Please sign in to comment.