LLVM-embedded-toolchain-for-Arm icon indicating copy to clipboard operation
LLVM-embedded-toolchain-for-Arm copied to clipboard

Support selection of different printf implementations

Open voltur01 opened this issue 1 year ago • 1 comments

Support selection of different printf implementations provided by picolibc.

picolibc provides a mechanism based on --defsym linker option to select which printf implementation to use, see https://github.com/picolibc/picolibc/blob/main/doc/printf.md

This works with GNU LD, however does not work with LLD because of https://github.com/llvm/llvm-project/issues/52, there is a specific reference there https://github.com/llvm/llvm-project/issues/52

We need to either help progress the LLD change above or invent something different as a workaround.

voltur01 avatar May 21 '24 13:05 voltur01

If you split out the printf from scanf selection, at least you'd avoid pulling in the scanf code with this?

keith-packard avatar Jun 28 '24 16:06 keith-packard

Was documented here https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm/blob/main/docs/migrating.md#linker

voltur01 avatar Jan 07 '25 11:01 voltur01