[PATCH v4 0/4] Enable orphan-handling=warn for VDSO
Catalin Marinas
catalin.marinas at arm.com
Wed Apr 27 11:20:34 PDT 2022
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'
aarch64-linux-ld: warning: orphan section `.got.plt' from `arch/arm64/kernel/vdso/vgettimeofday.o' being placed in section `.got.plt'
aarch64-linux-ld: warning: orphan section `.plt' from `arch/arm64/kernel/vdso/vgettimeofday.o' being placed in section `.plt'
aarch64-linux-ld: warning: orphan section `.rela.plt' from `arch/arm64/kernel/vdso/vgettimeofday.o' being placed in section `.rela.dyn'
arm-linux-gnueabihf-ld: warning: orphan section `.glue_7' from `linker stubs' being placed in section `.glue_7'
arm-linux-gnueabihf-ld: warning: orphan section `.glue_7t' from `linker stubs' being placed in section `.glue_7t'
arm-linux-gnueabihf-ld: warning: orphan section `.vfp11_veneer' from `linker stubs' being placed in section `.vfp11_veneer'
arm-linux-gnueabihf-ld: warning: orphan section `.v4_bx' from `linker stubs' being placed in section `.v4_bx'
arm-linux-gnueabihf-ld: warning: orphan section `.rel.got' from `arch/arm64/kernel/vdso32/note.o' being placed in section `.rel.dyn'
arm-linux-gnueabihf-ld: warning: orphan section `.got.plt' from `arch/arm64/kernel/vdso32/note.o' being placed in section `.got.plt'
arm-linux-gnueabihf-ld: warning: orphan section `.plt' from `arch/arm64/kernel/vdso32/note.o' being placed in section `.plt'
arm-linux-gnueabihf-ld: warning: orphan section `.iplt' from `arch/arm64/kernel/vdso32/note.o' being placed in section `.iplt'
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?
--
Catalin
More information about the linux-arm-kernel
mailing list