Re: [OE-core] [PATCH] binutils: Enable --enable-new-dtags

2023-03-08 Thread Khem Raj
Awesome, thanks! I think any recipe which is using INHIBIT_DEFAULT_DEPENDENCIES could run into these sorts of errors. On Wed, Mar 8, 2023 at 3:53 AM Richard Purdie wrote: > > On Wed, 2023-03-08 at 09:33 +, Richard Purdie via > lists.openembedded.org wrote: > > On Wed, 2023-02-22 at 22:58

Re: [OE-core] [PATCH] binutils: Enable --enable-new-dtags

2023-03-08 Thread Richard Purdie
On Wed, 2023-03-08 at 09:33 +, Richard Purdie via lists.openembedded.org wrote: > On Wed, 2023-02-22 at 22:58 -0800, Khem Raj wrote: > > Use DT_RUNPATH over DT_RPATH. If DT_RUNPATH is present, LD_LIBRARY_PATH is > > searched before > > DT_RUNPATH, Search order is DT_RPATH then LD_LIBRARY_PATH

Re: [OE-core] [PATCH] binutils: Enable --enable-new-dtags

2023-03-08 Thread Richard Purdie
On Wed, 2023-02-22 at 22:58 -0800, Khem Raj wrote: > Use DT_RUNPATH over DT_RPATH. If DT_RUNPATH is present, LD_LIBRARY_PATH is > searched before > DT_RUNPATH, Search order is DT_RPATH then LD_LIBRARY_PATH then > DT_RUNPATH, this order ensures that injecting > malicious shared objects is way

Re: [OE-core] [PATCH] binutils: Enable --enable-new-dtags

2023-03-02 Thread Richard Purdie
On Thu, 2023-03-02 at 17:54 +, Richard Purdie via lists.openembedded.org wrote: > On Thu, 2023-03-02 at 13:18 +, Richard Purdie via > lists.openembedded.org wrote: > > On Thu, 2023-03-02 at 12:41 +0100, Alexandre Belloni wrote: > > > On 01/03/2023 10:25:58+0100, Alexandre Belloni via

Re: [OE-core] [PATCH] binutils: Enable --enable-new-dtags

2023-03-02 Thread Richard Purdie
On Thu, 2023-03-02 at 13:18 +, Richard Purdie via lists.openembedded.org wrote: > On Thu, 2023-03-02 at 12:41 +0100, Alexandre Belloni wrote: > > On 01/03/2023 10:25:58+0100, Alexandre Belloni via lists.openembedded.org > > wrote: > > > On 28/02/2023 23:45:05+0100, Alexandre Belloni wrote: >

Re: [OE-core] [PATCH] binutils: Enable --enable-new-dtags

2023-03-02 Thread Richard Purdie
On Thu, 2023-03-02 at 12:41 +0100, Alexandre Belloni wrote: > On 01/03/2023 10:25:58+0100, Alexandre Belloni via lists.openembedded.org > wrote: > > On 28/02/2023 23:45:05+0100, Alexandre Belloni wrote: > > > On 28/02/2023 17:50:05+, Richard Purdie wrote: > > > > On Tue, 2023-02-28 at 08:43

Re: [OE-core] [PATCH] binutils: Enable --enable-new-dtags

2023-03-02 Thread Alexandre Belloni via lists.openembedded.org
On 01/03/2023 10:25:58+0100, Alexandre Belloni via lists.openembedded.org wrote: > On 28/02/2023 23:45:05+0100, Alexandre Belloni wrote: > > On 28/02/2023 17:50:05+, Richard Purdie wrote: > > > On Tue, 2023-02-28 at 08:43 -0800, Khem Raj wrote: > > > > On Tue, Feb 28, 2023 at 8:18 AM Alexandre

Re: [OE-core] [PATCH] binutils: Enable --enable-new-dtags

2023-03-01 Thread Alexandre Belloni via lists.openembedded.org
On 28/02/2023 23:45:05+0100, Alexandre Belloni wrote: > On 28/02/2023 17:50:05+, Richard Purdie wrote: > > On Tue, 2023-02-28 at 08:43 -0800, Khem Raj wrote: > > > On Tue, Feb 28, 2023 at 8:18 AM Alexandre Belloni > > > wrote: > > > > > > > > Hello Khem, > > > > > > > > As discussed I gave

Re: [OE-core] [PATCH] binutils: Enable --enable-new-dtags

2023-02-28 Thread Alexandre Belloni via lists.openembedded.org
On 28/02/2023 17:50:05+, Richard Purdie wrote: > On Tue, 2023-02-28 at 08:43 -0800, Khem Raj wrote: > > On Tue, Feb 28, 2023 at 8:18 AM Alexandre Belloni > > wrote: > > > > > > Hello Khem, > > > > > > As discussed I gave it a go again and got this: > > > > > > >

Re: [OE-core] [PATCH] binutils: Enable --enable-new-dtags

2023-02-28 Thread Richard Purdie
On Tue, 2023-02-28 at 08:43 -0800, Khem Raj wrote: > On Tue, Feb 28, 2023 at 8:18 AM Alexandre Belloni > wrote: > > > > Hello Khem, > > > > As discussed I gave it a go again and got this: > > > > > /home/pokybuild/yocto-worker/qemuarm/build/build/tmp/hosttools/ld: > > > linux-tdep.o: in

Re: [OE-core] [PATCH] binutils: Enable --enable-new-dtags

2023-02-28 Thread Khem Raj
On Tue, Feb 28, 2023 at 8:18 AM Alexandre Belloni wrote: > > Hello Khem, > > As discussed I gave it a go again and got this: > > | /home/pokybuild/yocto-worker/qemuarm/build/build/tmp/hosttools/ld: > linux-tdep.o: in function `linux_corefile_thread(thread_info*, > linux_corefile_thread_data*)':

Re: [OE-core] [PATCH] binutils: Enable --enable-new-dtags

2023-02-28 Thread Alexandre Belloni via lists.openembedded.org
Hello Khem, As discussed I gave it a go again and got this: | /home/pokybuild/yocto-worker/qemuarm/build/build/tmp/hosttools/ld: linux-tdep.o: in function `linux_corefile_thread(thread_info*, linux_corefile_thread_data*)': | linux-tdep.c:(.text+0x13ac): undefined reference to

Re: [OE-core] [PATCH] binutils: Enable --enable-new-dtags

2023-02-27 Thread Richard Purdie
On Sun, 2023-02-26 at 22:43 -0800, Khem Raj wrote: > On Thu, Feb 23, 2023 at 5:56 PM Khem Raj wrote: > > > > On Thu, Feb 23, 2023 at 3:34 PM Alexandre Belloni > > wrote: > > > > > > Could this be the cause of this? > > > > > >

Re: [OE-core] [PATCH] binutils: Enable --enable-new-dtags

2023-02-26 Thread Khem Raj
On Thu, Feb 23, 2023 at 5:56 PM Khem Raj wrote: > > On Thu, Feb 23, 2023 at 3:34 PM Alexandre Belloni > wrote: > > > > Could this be the cause of this? > > > > https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20230223-79c9rmcw/packages/diff-html/ > > most likely yes. I will take a

Re: [OE-core] [PATCH] binutils: Enable --enable-new-dtags

2023-02-23 Thread Khem Raj
On Thu, Feb 23, 2023 at 3:34 PM Alexandre Belloni wrote: > > Could this be the cause of this? > > https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20230223-79c9rmcw/packages/diff-html/ most likely yes. I will take a look. Lets work on merging the other binutils and gdb upgrade patch

Re: [OE-core] [PATCH] binutils: Enable --enable-new-dtags

2023-02-23 Thread Alexandre Belloni via lists.openembedded.org
Could this be the cause of this? https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20230223-79c9rmcw/packages/diff-html/ On 22/02/2023 22:58:16-0800, Khem Raj wrote: > Use DT_RUNPATH over DT_RPATH. If DT_RUNPATH is present, LD_LIBRARY_PATH is > searched before > DT_RUNPATH, Search

[OE-core] [PATCH] binutils: Enable --enable-new-dtags

2023-02-22 Thread Khem Raj
Use DT_RUNPATH over DT_RPATH. If DT_RUNPATH is present, LD_LIBRARY_PATH is searched before DT_RUNPATH, Search order is DT_RPATH then LD_LIBRARY_PATH then DT_RUNPATH, this order ensures that injecting malicious shared objects is way harder with DT_RUNPATH. This is now default on major linux