mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2026-07-02 08:02:40 +00:00
The Arm Compiler (armclang) toolchain replaces standard library calls like `snprintf` with renamed versions such as `__2snprintf` in generated object files and binaries. This name mangling is part of armclang’s internal handling of standard functions and can lead to undefined reference errors if these symbols are not defined. To resolve this, this patch introduces a new assembly stub for `__2snprintf` in AArch64-specific implementation. This stub is a minimal alias that branch directly to the underlying `snprintf` implementation. This mirrors the existing solution for `__0printf`, `__1printf`, and `__2printf` aliases that redirect to `printf`. Signed-off-by: Arvind Ram Prakash <arvind.ramprakash@arm.com> Change-Id: Id64d490fc3ff19ae619af03279f30338e8aa8bba