From: Simon Glass <sjg@chromium.org> Add a file which lists various symbols to rename when building the U-Boot library. For now it contains printf() and related functions, but more can be added later, as needed. Signed-off-by: Simon Glass <sjg@chromium.org> --- lib/ulib/rename.syms | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 lib/ulib/rename.syms diff --git a/lib/ulib/rename.syms b/lib/ulib/rename.syms new file mode 100644 index 00000000000..a0ecc6c1f40 --- /dev/null +++ b/lib/ulib/rename.syms @@ -0,0 +1,30 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Symbol redefinition list for U-Boot library +# +# Copyright 2025 Canonical Ltd. +# Written by Simon Glass <simon.glass@canonical.com> +# + +# Format: +# file:filename - indicates the header file which contains the following symbols +# +# Symbols renames are indented at least one position: +# symbol_name - Prefix the symbol with 'ub_' (e.g., printf → ub_printf) +# original=new - Explicit mapping, so 'original' becomes 'new' +# +# Lines starting with # are comments + +# Standard library functions +file: stdio.h + printf + snprintf + vprintf + +file: vsprintf.h + sprintf + vsprintf + vsnprintf + +# Example of explicit mapping for custom naming +# scnprintf=ub_scnprintf_custom -- 2.43.0