aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/jit-protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/jit-protocol.h')
-rw-r--r--gdb/testsuite/gdb.base/jit-protocol.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/jit-protocol.h b/gdb/testsuite/gdb.base/jit-protocol.h
index d143dd6..fc53824 100644
--- a/gdb/testsuite/gdb.base/jit-protocol.h
+++ b/gdb/testsuite/gdb.base/jit-protocol.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2009-2024 Free Software Foundation, Inc.
+/* Copyright (C) 2009-2025 Free Software Foundation, Inc.
This file is part of GDB.
@@ -26,6 +26,10 @@
#include <stdint.h>
+#ifndef JIT_DESCRIPTOR_LINKAGE
+#define JIT_DESCRIPTOR_LINKAGE
+#endif
+
typedef enum
{
JIT_NOACTION = 0,
@@ -51,7 +55,8 @@ struct jit_descriptor
struct jit_code_entry *first_entry;
};
-struct jit_descriptor __jit_debug_descriptor = { 1, 0, 0, 0 };
+JIT_DESCRIPTOR_LINKAGE struct jit_descriptor __jit_debug_descriptor
+ = { 1, 0, 0, 0 };
void __attribute__((noinline)) __jit_debug_register_code()
{