* [PATCH] aspeed/ast2600: Fix SPL linker script
@ 2022-06-28 4:27 Joel Stanley
2022-06-28 14:52 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Joel Stanley @ 2022-06-28 4:27 UTC (permalink / raw)
To: Ryan Chen, Chia-Wei Wang; +Cc: BMC-SW, u-boot, Cédric Le Goater
The commit 99e2fbcb69f0 ("linker_lists: Rename sections to remove .
prefix") changed the name of the linker list sections. As the Aspeed SPL
linker wasn't in the tree yet, it missed the change.
This updates the SPL linker to match arch/arm/cpu/u-boot-spl.lds which
Aspeed was copied from.
Fixes: 442a69c14375 ("configs: ast2600: Move SPL bss section to DRAM space")
Signed-off-by: Joel Stanley <joel@jms.id.au>
---
Note that the Aspeed script is still missing the following sections,
which would be a problem if --orphan-handling=warn or similar was added
to LDFLAGS in the future (or if some used data ended up in one of these
sections):
.dynsym _image_binary_end : { *(.dynsym) }
.dynbss : { *(.dynbss) }
.dynstr : { *(.dynstr*) }
.dynamic : { *(.dynamic*) }
.hash : { *(.hash*) }
.plt : { *(.plt*) }
.interp : { *(.interp*) }
.gnu : { *(.gnu*) }
.ARM.exidx : { *(.ARM.exidx*) }
I assume we're safe because they're relating to dynamic objects, so we
don't generate any.
The following sections are not accounted for in both the aspeed linker script and
the generic arm one:
orphan section `.vfp11_veneer' from `linker stubs' being placed in section `.vfp11_veneer'
orphan section `.v4_bx' from `linker stubs' being placed in section `.v4_bx'
orphan section `.iplt' from `arch/arm/cpu/armv7/start.o' being placed in section `.iplt'
orphan section `.igot.plt' from `arch/arm/cpu/armv7/start.o' being placed in section `.igot.plt'
I assume they're not required as u-boot works without them.
arch/arm/mach-aspeed/ast2600/u-boot-spl.lds | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-aspeed/ast2600/u-boot-spl.lds b/arch/arm/mach-aspeed/ast2600/u-boot-spl.lds
index 22b4e16d35c5..95a509ba3f31 100644
--- a/arch/arm/mach-aspeed/ast2600/u-boot-spl.lds
+++ b/arch/arm/mach-aspeed/ast2600/u-boot-spl.lds
@@ -40,8 +40,8 @@ SECTIONS
} > .nor
. = ALIGN(4);
- .u_boot_list : {
- KEEP(*(SORT(.u_boot_list*)));
+ __u_boot_list : {
+ KEEP(*(SORT(__u_boot_list*)));
} > .nor
. = ALIGN(4);
@@ -68,7 +68,7 @@ SECTIONS
_image_binary_end = .;
- .bss : {
+ .bss __rel_dyn_start (OVERLAY) : {
__bss_start = .;
*(.bss*)
. = ALIGN(4);
--
2.35.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] aspeed/ast2600: Fix SPL linker script
2022-06-28 4:27 [PATCH] aspeed/ast2600: Fix SPL linker script Joel Stanley
@ 2022-06-28 14:52 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2022-06-28 14:52 UTC (permalink / raw)
To: Joel Stanley
Cc: Ryan Chen, Chia-Wei Wang, BMC-SW, u-boot, Cédric Le Goater
[-- Attachment #1: Type: text/plain, Size: 552 bytes --]
On Tue, Jun 28, 2022 at 01:57:25PM +0930, Joel Stanley wrote:
> The commit 99e2fbcb69f0 ("linker_lists: Rename sections to remove .
> prefix") changed the name of the linker list sections. As the Aspeed SPL
> linker wasn't in the tree yet, it missed the change.
>
> This updates the SPL linker to match arch/arm/cpu/u-boot-spl.lds which
> Aspeed was copied from.
>
> Fixes: 442a69c14375 ("configs: ast2600: Move SPL bss section to DRAM space")
> Signed-off-by: Joel Stanley <joel@jms.id.au>
Applied to u-boot/next, thanks!
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-28 14:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-28 4:27 [PATCH] aspeed/ast2600: Fix SPL linker script Joel Stanley
2022-06-28 14:52 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox