Re: [PATCH] powerpc/build: vdso linker warning for orphan sections

From: Michael Ellerman
Date: Tue Jul 18 2023 - 08:59:26 EST


John Ogness <john.ogness@xxxxxxxxxxxxx> writes:
> Hi Nicholas,
>
> On 2023-06-09, Nicholas Piggin <npiggin@xxxxxxxxx> wrote:
>> Add --orphan-handlin for vdsos, and adjust vdso linker scripts to deal
>> with orphan sections.
>
> I'm reporting that I am getting a linker warning with 6.5-rc2. The
> warning message is:
>
> ld: warning: discarding dynamic section .rela.opd
>
> and bisects to:
>
> 8ad57add77d3 ("powerpc/build: vdso linker warning for orphan sections")
>
> Despite the warning, my ppc64 system seems to run fine. Let me know if
> you need any other information from me.

We already discard .opd and .rela*, so I guess we should also be
discarding .rela.opd.

Can you test with a newer compiler/binutils?

cheers