From 8e427c293860576df43ead3639bac807e2a43b03 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Thu, 9 Aug 2018 22:50:19 +0200 Subject: lib: "xref" identifier infrastructure This adds the machinery for cross reference points (hence "xref") for things to be annotated with source code location or other metadata and/or to be uniquely identified and found at runtime or by dissecting executable files. The extraction tool to walk down an ELF file is done and working but needs some more cleanup and will be added in a separate commit. Signed-off-by: David Lamparter --- lib/module.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/module.c') diff --git a/lib/module.c b/lib/module.c index 14d5cfd44f..3d299a6a2e 100644 --- a/lib/module.c +++ b/lib/module.c @@ -43,6 +43,8 @@ union _frrmod_runtime_u frrmod_default = { }, }; +XREF_SETUP() + // if defined(HAVE_SYS_WEAK_ALIAS_ATTRIBUTE) // union _frrmod_runtime_u _frrmod_this_module // __attribute__((weak, alias("frrmod_default"))); -- cgit v1.2.3