[PATCH u-boot v4 16/36] sandbox: errno: avoid conflict with libc's errno
Tom Rini
trini at konsulko.com
Tue May 25 02:55:43 CEST 2021
On Thu, May 20, 2021 at 01:24:05PM +0200, Marek Behún wrote:
> When building with LTO, the system libc's `errno` variable used in
> arch/sandbox/cpu/os.c conflicts with U-Boot's `errno` (defined in
> lib/errno.c) with the following error:
> .../ld: errno@@GLIBC_PRIVATE: TLS definition in /lib64/libc.so.6
> section .tbss mismatches non-TLS reference in
> /tmp/u-boot.EQlEXz.ltrans0.ltrans.o
>
> To avoid this conflict use different asm label for this variable when
> CONFIG_SANDBOX is enabled.
>
> Signed-off-by: Marek Behún <marek.behun at nic.cz>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
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/20210524/23908dc4/attachment.sig>
More information about the U-Boot
mailing list