[PATCH v4 0/4] Enable orphan-handling=warn for VDSO

Joey Gouly joey.gouly at arm.com
Thu Apr 28 09:11:25 PDT 2022


Hi Catalin,

On Wed, Apr 27, 2022 at 07:20:34PM +0100, Catalin Marinas wrote:
> Hi Joey,
> 
> On Thu, Apr 14, 2022 at 11:46:07AM +0100, Joey Gouly wrote:
> > This small series enables the orphan-handling linker flag for the VDSO.
> > This could catch subtle errors if features that use special sections are
> > introduced into the VDSO implementation.
> 
> Building the 5.18-rc3 kernel with these patches, I get lots of:
> 
> aarch64-linux-ld: warning: orphan section `.rela.got' from `arch/arm64/kernel/vdso/vgettimeofday.o' being placed in section `.rela.dyn'
> aarch64-linux-ld: warning: orphan section `.got' from `arch/arm64/kernel/vdso/vgettimeofday.o' being placed in section `.got'
[..]
> arm-linux-gnueabihf-ld: warning: orphan section `.rel.iplt' from `arch/arm64/kernel/vdso32/note.o' being placed in section `.rel.dyn'
> arm-linux-gnueabihf-ld: warning: orphan section `.igot.plt' from `arch/arm64/kernel/vdso32/note.o' being placed in section `.igot.plt'
> arm-linux-gnueabihf-ld: warning: orphan section `.rel.text' from `arch/arm64/kernel/vdso32/note.o' being placed in section `.rel.dyn'
> 
> Do they need fixing or there's something wrong with my toolchain?
> 

I can reproduce this with binutils ld, I was previously testing with LLD.
Seems to me that LLD discards more sections than ld.

I will fix it and send out v5.

Thanks,
Joey



More information about the linux-arm-kernel mailing list