From: Richard Henderson <richard.henderson@linaro.org>
To: Ilias Apalodimas <ilias.apalodimas@linaro.org>,
u-boot@lists.denx.de, trini@konsulko.com, cfsworks@gmail.com
Cc: caleb.connolly@linaro.org, sumit.garg@linaro.org,
Ryan Chen <ryan_chen@aspeedtech.com>,
Chia-Wei Wang <chiawei_wang@aspeedtech.com>,
Aspeed BMC SW team <BMC-SW@aspeedtech.com>,
Joel Stanley <joel@jms.id.au>, Simon Glass <sjg@chromium.org>,
Philipp Tomsich <philipp.tomsich@vrull.eu>,
Kever Yang <kever.yang@rock-chips.com>,
Michal Simek <michal.simek@amd.com>,
Yegor Yefremov <yegorslists@googlemail.com>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Shiji Yang <yangshiji66@outlook.com>,
Bin Meng <bmeng@tinylab.org>
Subject: Re: [PATCH v3 7/7] arm: remove redundant section alignments
Date: Wed, 13 Mar 2024 10:21:51 -1000 [thread overview]
Message-ID: <c1b5b9a6-b59e-4ce7-b0a6-07c92b606828@linaro.org> (raw)
In-Reply-To: <20240313162324.2117909-8-ilias.apalodimas@linaro.org>
On 3/13/24 06:23, Ilias Apalodimas wrote:
> Previous patches cleaning up linker symbols, also merged any explicit
> . = ALIGN(x); into section definitions -- e.g
> .bss ALIGN(x) : instead of
>
> . = ALIGN(x);
> . bss : {...}
>
> However, if the output address is not specified then one will be chosen
> for the section. This address will be adjusted to fit the alignment
> requirement of the output section following the strictest alignment of
> any input section contained within the output section. So let's get rid
> of the redundant ALIGN directives when they are not needed.
>
> While at add comments for the alignment of __bss_start/end since our
> C runtime setup assembly assumes that __bss_start - __bss_end will be
> a multiple of 4/8 for armv7 and armv8 respectively.
>
> It's worth noting that the alignment is preserved on .rel.dyn for
> mach-zynq which was explicitly aligning that section on an 8b
> boundary instead of 4b one.
>
> Signed-off-by: Ilias Apalodimas<ilias.apalodimas@linaro.org>
> ---
> arch/arm/cpu/armv8/u-boot.lds | 9 ++++++---
> arch/arm/cpu/u-boot.lds | 8 ++++++--
> arch/arm/mach-zynq/u-boot.lds | 4 ++--
> 3 files changed, 14 insertions(+), 7 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
prev parent reply other threads:[~2024-03-13 20:22 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-13 16:23 [PATCH v3 0/7] Clean up arm linker scripts Ilias Apalodimas
2024-03-13 16:23 ` [PATCH v3 1/7] arm: baltos: remove custom linker script Ilias Apalodimas
2024-03-13 16:23 ` [PATCH v3 2/7] arm: clean up v7 and v8 linker scripts for bss_start/end Ilias Apalodimas
2024-03-13 20:19 ` Richard Henderson
2024-03-13 21:43 ` Ilias Apalodimas
2024-03-13 22:43 ` Richard Henderson
2024-03-14 7:59 ` Ilias Apalodimas
2024-03-13 22:57 ` Sam Edwards
2024-03-14 0:40 ` Tom Rini
2024-03-13 16:23 ` [PATCH v3 3/7] arm: fix __efi_runtime_rel_start/end definitions Ilias Apalodimas
2024-03-13 16:23 ` [PATCH v3 4/7] arm: clean up v7 and v8 linker scripts for __rel_dyn_start/end Ilias Apalodimas
2024-03-13 16:23 ` [PATCH v3 5/7] arm: fix __efi_runtime_start/end definitions Ilias Apalodimas
2024-03-13 16:23 ` [PATCH v3 6/7] arm: move image_copy_start/end to linker symbols Ilias Apalodimas
2024-03-13 16:23 ` [PATCH v3 7/7] arm: remove redundant section alignments Ilias Apalodimas
2024-03-13 20:21 ` Richard Henderson [this message]
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=c1b5b9a6-b59e-4ce7-b0a6-07c92b606828@linaro.org \
--to=richard.henderson@linaro.org \
--cc=BMC-SW@aspeedtech.com \
--cc=bmeng@tinylab.org \
--cc=caleb.connolly@linaro.org \
--cc=cfsworks@gmail.com \
--cc=chiawei_wang@aspeedtech.com \
--cc=ilias.apalodimas@linaro.org \
--cc=joel@jms.id.au \
--cc=kever.yang@rock-chips.com \
--cc=michal.simek@amd.com \
--cc=philipp.tomsich@vrull.eu \
--cc=ryan_chen@aspeedtech.com \
--cc=sjg@chromium.org \
--cc=sumit.garg@linaro.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
--cc=yangshiji66@outlook.com \
--cc=yegorslists@googlemail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.