ulib: Provide a symbol-rename file
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>
This commit is contained in:
30
lib/ulib/rename.syms
Normal file
30
lib/ulib/rename.syms
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user