[PATCH v3 1/6] doc: update guide on versioning macros
Andre Muezerie
andremue at linux.microsoft.com
Thu Feb 20 21:31:43 CET 2025
Added explanation about new macro MAP_STATIC_BASE_SYMBOL.
Signed-off-by: Andre Muezerie <andremue at linux.microsoft.com>
---
doc/guides/contributing/abi_versioning.rst | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/doc/guides/contributing/abi_versioning.rst b/doc/guides/contributing/abi_versioning.rst
index 7afd1c1886..1179445da3 100644
--- a/doc/guides/contributing/abi_versioning.rst
+++ b/doc/guides/contributing/abi_versioning.rst
@@ -151,6 +151,11 @@ The macros exported are:
fully qualified function ``p``, so that if a symbol becomes versioned, it
can still be mapped back to the public symbol name.
+* ``MAP_STATIC_BASE_SYMBOL(b, p)``: Declare the base symbol ``b``, and map it
+ to the fully qualified function ``p``, so that if a symbol becomes versioned,
+ it can still be mapped back to the public symbol name. Used for compatibility
+ with MSVC.
+
* ``__vsym``: Annotation to be used in a declaration of the internal symbol
``be`` to signal that it is being used as an implementation of a particular
version of symbol ``b``.
@@ -397,6 +402,7 @@ defined, we add this
...
}
MAP_STATIC_SYMBOL(struct rte_acl_ctx *rte_acl_create(const struct rte_acl_param *param, int debug), rte_acl_create_v22);
+ MAP_STATIC_BASE_SYMBOL(rte_acl_create, rte_acl_create_v22);
That tells the compiler that, when building a static library, any calls to the
symbol ``rte_acl_create`` should be linked to ``rte_acl_create_v22``
--
2.48.1.vfs.0.0
More information about the dev
mailing list