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

Joey Gouly joey.gouly at arm.com
Tue May 10 02:58:30 PDT 2022


Hi all,

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.

Tested by running the VDSO self tests.
Tested building with LLVM LLD and Binutils LD linkers.

Changes from v4 [1]:
  - Add more sections that showed up when using binutils ld

Thanks,
Joey

[1]: https://lore.kernel.org/linux-arm-kernel/20220414104611.17748-1-joey.gouly@arm.com/

Joey Gouly (4):
  arm64: vdso: put ELF related sections in the linker script
  arm64: vdso: enable orphan handling for VDSO
  arm64: vdso32: put ELF related sections in the linker script
  arm64: vdso32: enable orphan handling for VDSO

 arch/arm64/kernel/vdso/Makefile     |  8 +++++++-
 arch/arm64/kernel/vdso/vdso.lds.S   | 16 ++++++++++++++++
 arch/arm64/kernel/vdso32/Makefile   |  1 +
 arch/arm64/kernel/vdso32/vdso.lds.S | 22 +++++++++++++++++++++-
 4 files changed, 45 insertions(+), 2 deletions(-)

-- 
2.17.1




More information about the linux-arm-kernel mailing list