From: Vincenzo Frascino <vincenzo.frascino@arm.com>
To: Joey Gouly <joey.gouly@arm.com>, linux-arm-kernel@lists.infradead.org
Cc: nd@arm.com, catalin.marinas@arm.com, keescook@chromium.org,
masahiroy@kernel.org, will@kernel.org
Subject: Re: [PATCH v5 1/4] arm64: vdso: put ELF related sections in the linker script
Date: Tue, 10 May 2022 11:39:19 +0100 [thread overview]
Message-ID: <00abb0c5-6360-0004-353f-e7a88b3bd22c@arm.com> (raw)
In-Reply-To: <20220510095834.32394-2-joey.gouly@arm.com>
Hi Joey,
On 5/10/22 10:58, Joey Gouly wrote:
> Use macros from vmlinux.lds.h to explicitly name sections that are included
> in the VDSO output.
>
> Signed-off-by: Joey Gouly <joey.gouly@arm.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Will Deacon <will@kernel.org>
> Cc: Masahiro Yamada <masahiroy@kernel.org>
> Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
> Cc: Kees Cook <keescook@chromium.org>
> Reviewed-by: Kees Cook <keescook@chromium.org>
> Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
As a general rule, when you make a consistent change to a patch that was
previously reviewed you should drop the "Reviewed-by:" tag as an indication that
the patch needs to be reviewed again.
> ---
> arch/arm64/kernel/vdso/vdso.lds.S | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/arch/arm64/kernel/vdso/vdso.lds.S b/arch/arm64/kernel/vdso/vdso.lds.S
> index a5e61e09ea92..1cd85258c079 100644
> --- a/arch/arm64/kernel/vdso/vdso.lds.S
> +++ b/arch/arm64/kernel/vdso/vdso.lds.S
> @@ -11,6 +11,7 @@
> #include <linux/const.h>
> #include <asm/page.h>
> #include <asm/vdso.h>
> +#include <asm-generic/vmlinux.lds.h>
>
> OUTPUT_FORMAT("elf64-littleaarch64", "elf64-bigaarch64", "elf64-littleaarch64")
> OUTPUT_ARCH(aarch64)
> @@ -49,11 +50,26 @@ SECTIONS
>
> .dynamic : { *(.dynamic) } :text :dynamic
>
> + .rela.dyn : ALIGN(8) { *(.rela .rela*) }
> +
> + .plt : {
> + *(.plt)
> + *(.plt.*)
> + *(.iplt)
> + *(.igot .igot.plt)
> + }
> +
> + .got : { *(.got) }
> + .got.plt : { *(.got.plt) }
> +
The vDSO library does not contain absolute relocations. Is there any specific
reason why these sections are not part of ".rodata"?
Please refer to: lib/vdso/Makefile
Note: A similar comment applies to vdso32.
> .rodata : { *(.rodata*) } :text
>
> _end = .;
> PROVIDE(end = .);
>
> + DWARF_DEBUG
> + ELF_DETAILS
> +
> /DISCARD/ : {
> *(.data .data.* .gnu.linkonce.d.* .sdata*)
> *(.bss .sbss .dynbss .dynsbss)
--
Regards,
Vincenzo
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-05-10 10:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-10 9:58 [PATCH v5 0/4] Enable orphan-handling=warn for VDSO Joey Gouly
2022-05-10 9:58 ` [PATCH v5 1/4] arm64: vdso: put ELF related sections in the linker script Joey Gouly
2022-05-10 10:39 ` Vincenzo Frascino [this message]
2022-05-10 9:58 ` [PATCH v5 2/4] arm64: vdso: enable orphan handling for VDSO Joey Gouly
2022-05-10 9:58 ` [PATCH v5 3/4] arm64: vdso32: put ELF related sections in the linker script Joey Gouly
2022-05-10 9:58 ` [PATCH v5 4/4] arm64: vdso32: enable orphan handling for VDSO Joey Gouly
2022-06-23 17:53 ` [PATCH v5 0/4] Enable orphan-handling=warn " Will Deacon
2022-06-23 18:05 ` Joey Gouly
2022-06-23 19:34 ` Will Deacon
2022-06-23 19:31 ` Will Deacon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=00abb0c5-6360-0004-353f-e7a88b3bd22c@arm.com \
--to=vincenzo.frascino@arm.com \
--cc=catalin.marinas@arm.com \
--cc=joey.gouly@arm.com \
--cc=keescook@chromium.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=masahiroy@kernel.org \
--cc=nd@arm.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox