Skip to content
Snippets Groups Projects
Commit bebc1410 authored by Simon Glass's avatar Simon Glass
Browse files

trace: Move trace pointer to data section


This can be written before relocation. Move it to the data section, since
accessing BSS before relocation is not permitted.

Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
parent 9557592e
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment