aboutsummaryrefslogtreecommitdiff
path: root/lib/trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/trace.c')
-rw-r--r--lib/trace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/trace.c b/lib/trace.c
index 880d90ebd5c..b9dc6d2e4b5 100644
--- a/lib/trace.c
+++ b/lib/trace.c
@@ -40,7 +40,8 @@ struct trace_hdr {
int max_depth;
};
-static struct trace_hdr *hdr; /* Pointer to start of trace buffer */
+/* Pointer to start of trace buffer */
+static struct trace_hdr *hdr __section(".data");
static inline uintptr_t __attribute__((no_instrument_function))
func_ptr_to_num(void *func_ptr)