Logo
Explore Help
Register Sign In
leandrof/u-boot
1
0
Fork 1
You've already forked u-boot
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
d73b9e67ed49be21fd51a26b830a6543dcffdbc0
u-boot/lib/errno.c

4 lines
53 B
C
Raw Normal View History

sandbox: errno: avoid conflict with libc's errno 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@nic.cz> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2021-05-20 13:24:05 +02:00
#include <errno.h>
int errno __errno_asm_label = 0;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 113ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API