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

Michael Ellerman mpe at ellerman.id.au
Tue Jul 18 22:59:13 AEST 2023

John Ogness <john.ogness at linutronix.de> writes:
> Hi Nicholas,
> On 2023-06-09, Nicholas Piggin <npiggin at gmail.com> 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?


More information about the Linuxppc-dev mailing list