Re: [RFC PATCH u-boot 02/12] sandbox: errno: avoid conflict with libc's errno

2021-03-11 Thread Simon Glass
On Tue, 2 Mar 2021 at 21:12, 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 >

Re: [RFC PATCH u-boot 02/12] sandbox: errno: avoid conflict with libc's errno

2021-03-06 Thread Marek Behun
On Fri, 5 Mar 2021 18:21:51 +0100 Heinrich Schuchardt wrote: > On 05.03.21 16:37, Marek Behun wrote: > > On Fri, 5 Mar 2021 11:00:45 +0800 > > Bin Meng wrote: > > > >> On Wed, Mar 3, 2021 at 12:13 PM Marek Behún wrote: > >>> > >>> When building with LTO, the system libc's `errno` variable u

Re: [RFC PATCH u-boot 02/12] sandbox: errno: avoid conflict with libc's errno

2021-03-05 Thread Simon Glass
Hi Marek, On Fri, 5 Mar 2021 at 10:24, Marek Behun wrote: > > On Fri, 5 Mar 2021 09:58:34 -0700 > Simon Glass wrote: > > > Hi Marek, > > > > On Fri, 5 Mar 2021 at 09:50, Marek Behun wrote: > > > > > > On Fri, 5 Mar 2021 09:39:53 -0700 > > > Simon Glass wrote: > > > > > > > Hi Marek, > > > > >

Re: [RFC PATCH u-boot 02/12] sandbox: errno: avoid conflict with libc's errno

2021-03-05 Thread Heinrich Schuchardt
On 05.03.21 17:58, Simon Glass wrote: > Hi Marek, > > On Fri, 5 Mar 2021 at 09:50, Marek Behun wrote: >> >> On Fri, 5 Mar 2021 09:39:53 -0700 >> Simon Glass wrote: >> >>> Hi Marek, >>> >>> On Fri, 5 Mar 2021 at 08:37, Marek Behun wrote: On Fri, 5 Mar 2021 11:00:45 +0800 Bin Meng

Re: [RFC PATCH u-boot 02/12] sandbox: errno: avoid conflict with libc's errno

2021-03-05 Thread Marek Behun
On Fri, 5 Mar 2021 09:58:34 -0700 Simon Glass wrote: > Hi Marek, > > On Fri, 5 Mar 2021 at 09:50, Marek Behun wrote: > > > > On Fri, 5 Mar 2021 09:39:53 -0700 > > Simon Glass wrote: > > > > > Hi Marek, > > > > > > On Fri, 5 Mar 2021 at 08:37, Marek Behun wrote: > > > > > > > > On Fri, 5 M

Re: [RFC PATCH u-boot 02/12] sandbox: errno: avoid conflict with libc's errno

2021-03-05 Thread Heinrich Schuchardt
On 05.03.21 16:37, Marek Behun wrote: > On Fri, 5 Mar 2021 11:00:45 +0800 > Bin Meng wrote: > >> On Wed, Mar 3, 2021 at 12:13 PM 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 >>>

Re: [RFC PATCH u-boot 02/12] sandbox: errno: avoid conflict with libc's errno

2021-03-05 Thread Simon Glass
Hi Marek, On Fri, 5 Mar 2021 at 09:50, Marek Behun wrote: > > On Fri, 5 Mar 2021 09:39:53 -0700 > Simon Glass wrote: > > > Hi Marek, > > > > On Fri, 5 Mar 2021 at 08:37, Marek Behun wrote: > > > > > > On Fri, 5 Mar 2021 11:00:45 +0800 > > > Bin Meng wrote: > > > > > > > On Wed, Mar 3, 2021 at

Re: [RFC PATCH u-boot 02/12] sandbox: errno: avoid conflict with libc's errno

2021-03-05 Thread Marek Behun
On Fri, 5 Mar 2021 09:39:53 -0700 Simon Glass wrote: > Hi Marek, > > On Fri, 5 Mar 2021 at 08:37, Marek Behun wrote: > > > > On Fri, 5 Mar 2021 11:00:45 +0800 > > Bin Meng wrote: > > > > > On Wed, Mar 3, 2021 at 12:13 PM Marek Behún wrote: > > > > > > > > When building with LTO, the syste

Re: [RFC PATCH u-boot 02/12] sandbox: errno: avoid conflict with libc's errno

2021-03-05 Thread Simon Glass
Hi Marek, On Fri, 5 Mar 2021 at 08:37, Marek Behun wrote: > > On Fri, 5 Mar 2021 11:00:45 +0800 > Bin Meng wrote: > > > On Wed, Mar 3, 2021 at 12:13 PM Marek Behún wrote: > > > > > > When building with LTO, the system libc's `errno` variable used in > > > arch/sandbox/cpu/os.c conflicts with U-

Re: [RFC PATCH u-boot 02/12] sandbox: errno: avoid conflict with libc's errno

2021-03-05 Thread Marek Behun
On Fri, 5 Mar 2021 11:00:45 +0800 Bin Meng wrote: > On Wed, Mar 3, 2021 at 12:13 PM 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: > >

Re: [RFC PATCH u-boot 02/12] sandbox: errno: avoid conflict with libc's errno

2021-03-04 Thread Bin Meng
On Wed, Mar 3, 2021 at 12:13 PM 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

[RFC PATCH u-boot 02/12] sandbox: errno: avoid conflict with libc's errno

2021-03-02 Thread Marek Behún
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