[PATCH v1 1/2] arm64: vdso: put ELF related sections in the linker script
Kees Cook
keescook at chromium.org
Tue Apr 5 10:41:23 PDT 2022
On Tue, Apr 05, 2022 at 05:02:45PM +0100, Joey Gouly wrote:
> These are the same sections as ELF_DETAILS in include/asm-generic/vmlinux.lds.h
Can include/asm-generic/vmlinux.lds.h be included to just use
ELF_DETAILS directly?
Outside of that, yeah, this series looks good. Thanks!
-Kees
>
> Signed-off-by: Joey Gouly <joey.gouly at arm.com>
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Cc: Will Deacon <will at kernel.org>
> Cc: Masahiro Yamada <masahiroy at kernel.org>
> Cc: Vincenzo Frascino <vincenzo.frascino at arm.com>
> Cc: Kees Cook <keescook at chromium.org>
> ---
> arch/arm64/kernel/vdso/vdso.lds.S | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/arch/arm64/kernel/vdso/vdso.lds.S b/arch/arm64/kernel/vdso/vdso.lds.S
> index a5e61e09ea92..e453e74e98f9 100644
> --- a/arch/arm64/kernel/vdso/vdso.lds.S
> +++ b/arch/arm64/kernel/vdso/vdso.lds.S
> @@ -54,6 +54,11 @@ SECTIONS
> _end = .;
> PROVIDE(end = .);
>
> + .comment 0 : { *(.comment) }
> + .symtab 0 : { *(.symtab) }
> + .strtab 0 : { *(.strtab) }
> + .shstrtab 0 : { *(.shstrtab) }
> +
> /DISCARD/ : {
> *(.data .data.* .gnu.linkonce.d.* .sdata*)
> *(.bss .sbss .dynbss .dynsbss)
> --
> 2.17.1
>
--
Kees Cook
More information about the linux-arm-kernel
mailing list