[PATCH] examples: standalone: Fix build with LLVM toolchain

Tom Rini trini at konsulko.com
Tue Oct 11 15:56:35 CEST 2022


On Mon, Sep 26, 2022 at 08:47:10PM +0000, Alistair Delva wrote:

> When building the standalone example with llvm, the link step fails:
> 
> examples/standalone/libstubs.o: In function `dummy':
> include/_exports.h:10: undefined reference to `jt'
> include/_exports.h:11: undefined reference to `jt'
> include/_exports.h:12: undefined reference to `jt'
> include/_exports.h:13: undefined reference to `jt'
> include/_exports.h:14: undefined reference to `jt'
> examples/standalone/libstubs.o:include/_exports.h:15:
>   more undefined references to `jt' follow
> 
> Indeed, the standalone libstubs.o does use the jt symbol, but it was
> marked 'static' in stubs.c. It's strange how gcc builds are working.
> 
> Signed-off-by: Alistair Delva <adelva at google.com>
> Cc: Rick Chen <rick at andestech.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: Nick Desaulniers <ndesaulniers at google.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20221011/59798e95/attachment.sig>


More information about the U-Boot mailing list