zephyr/subsys/debug/symtab/symtab_stub.c
Yong Cong Sin 13a5c8aad7 debug: symtab: fix linking issue due to variable redefinition
Employs the same linkonce magic of sw_isr_table to fix the
multiple definition of the symtab variables issue that I
get in my application build that doesn't use `west`.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-05-30 16:52:01 -05:00

16 lines
385 B
C

/*
* Copyright (c) 2024 Meta Platforms
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/linker/sections.h>
#include <zephyr/debug/symtab.h>
/**
* These are placeholder variables. They will be replaced by the real ones
* generated by `gen_symtab.py`.
*/
const struct z_symtab_entry __symtab_entry * z_symtab_entries;
const struct symtab_info __symtab_info z_symtab;