summaryrefslogtreecommitdiff
path: root/lib/xref.c
AgeCommit message (Collapse)Author
2023-02-09*: auto-convert to SPDX License IDsDavid Lamparter
Done with a combination of regex'ing and banging my head against a wall. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2021-11-10lib: stuff xrefs into a tree for lookupDavid Lamparter
... so we can actually access by UID without searching the entire list. Signed-off-by: David Lamparter <equinox@diac24.net>
2021-03-22lib: fix xref hash calculationDavid Lamparter
... to make it do what it says it does. Signed-off-by: David Lamparter <equinox@diac24.net>
2021-02-03lib/xref: work around GCC bug 41091David Lamparter
gcc fucks up global variables with section attributes when they're used in templated C++ code. The template instantiation "magic" kinda breaks down (it's implemented through COMDAT in the linker, which clashes with the section attribute.) The workaround provides full runtime functionality, but the xref extraction tool (xrelfo.py) won't work on C++ code compiled by GCC. FWIW, clang gets this right. Signed-off-by: David Lamparter <equinox@diac24.net>
2021-02-01lib: "xref" identifier infrastructureDavid Lamparter
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 <equinox@diac24.net>