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

John Ogness john.ogness at linutronix.de
Wed Jul 19 00:22:36 AEST 2023

On 2023-07-18, Michael Ellerman <mpe at ellerman.id.au> wrote:
>> ld: warning: discarding dynamic section .rela.opd
>> and bisects to:
>> 8ad57add77d3 ("powerpc/build: vdso linker warning for orphan sections")
> Can you test with a newer compiler/binutils?

Testing the Debian release cross compilers/binutils:

Debian 10 / gcc 8.3.0  / ld 2.31.1: generates the warning

Debian 11 / gcc 10.2.1 / ld 2.35.2: generates the warning

Debian 12 / gcc 12.2.0 / ld 2.40:   does _not_ generate the warning

I suppose moving to the newer toolchain is the workaround. Although it
is a bit unusual to require such a modern toolchain in order to build a
kernel without warnings.

John Ogness

More information about the Linuxppc-dev mailing list