Skip to contentSkip to conversation

arm: Remove rel.dyn from SPL linker scripts

PATCH In review Tom Rini 2 participants 6 messages Jan 27 – Jan 28

Subsystems (4)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 arm: Remove rel.dyn from SPL linker scripts

As of v2026.01, no platforms contain any rel.dyn sections in their xPL phase images. Their inclusion in linker scripts initially was an oversight as part of taking the full U-Boot linker scripts and modifying them down. Then in commit 8b0ebe054bb3 ("arm: Update linker scripts to ensure appended device tree is aligned") these sections were used to force correct alignment for the device tree. This however, lead to a different problem.

That problem is that when we do not have a separate BSS section in SPL we instead would overlay the BSS with the rel.dyn section, in the common linker script case. This in turn lead to creating an incorrectly sized BSS "pad" file sometimes (depending on arbitrary changes within the rest of the binary itself). This in turn lead to the dtb being in the wrong location in the binary and not found at run time.

This commit fixes a few things:
- Remove the rel.dyn section from all ARM SPL linker scripts.
- In turn, this moves the dtb alignment statement in to another section.
- For ast2600 which uses CONFIG_POSITION_INDEPENDENT we need to keep the symbols however.

---
I sent this off-list to Fabio first to confirm it finally fixed things.

Cc "Chia-Wei, Wang" <[email protected]>
Cc Adam Ford <[email protected]>
---
 arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds      |  8 --------
 arch/arm/cpu/u-boot-spl.lds                    | 13 ++-----------
 arch/arm/mach-aspeed/ast2600/u-boot-spl.lds    | 16 +++++++---------
 board/davinci/da8xxevm/u-boot-spl-da850evm.lds |  9 ++-------
 4 files changed, 11 insertions(+), 35 deletions(-)
arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds +0 -8
index b4adae272eba..ac166d1d8526 100644
@@ -33,14 +33,6 @@ SECTIONS
 		*(.data*)
 	}
 
-	. = ALIGN(4);
-
-	.rel.dyn : {
-		__rel_dyn_start = .;
-		*(.rel*)
-		__rel_dyn_end = .;
-	}
-
 	.bss : {
 		. = ALIGN(4);
 		__bss_start = .;
arch/arm/cpu/u-boot-spl.lds +2 -11
index d780a5060774..c578c3ebf821 100644
@@ -41,23 +41,14 @@ SECTIONS
 		__binman_sym_start = .;
 		KEEP(*(SORT(.binman_sym*)));
 		__binman_sym_end = .;
-	}
-
-	. = ALIGN(4);
-
-	__image_copy_end = .;
-
-	.rel.dyn : {
-		__rel_dyn_start = .;
-		*(.rel*)
-		__rel_dyn_end = .;
 		. = ALIGN(8);
 	}
 
+	__image_copy_end = .;
 	_image_binary_end = .;
 	_end = .;
 
-	.bss __rel_dyn_start (OVERLAY) : {
+	.bss : {
 		__bss_start = .;
 		*(.bss*)
 		 . = ALIGN(8);
arch/arm/mach-aspeed/ast2600/u-boot-spl.lds +7 -9
index c9664a6ce566..303ace2f61ca 100644
@@ -49,19 +49,17 @@ SECTIONS
 		__binman_sym_start = .;
 		KEEP(*(SORT(.binman_sym*)));
 		__binman_sym_end = .;
+		. = ALIGN(8);
 	} > .nor
 
-	. = ALIGN(4);
+	/*
+	 * These platforms enable CONFIG_POSITION_INDEPENDENT and so need
+	 * these names. The always however hold the same value.
+	 */
+	__rel_dyn_start = .;
+	__rel_dyn_end = .;
 
 	__image_copy_end = .;
-
-	.rel.dyn : {
-		__rel_dyn_start = .;
-		*(.rel*)
-		__rel_dyn_end = .;
-		. = ALIGN(8);
-	} > .nor
-
 	_end = .;
 	_image_binary_end = .;
 
board/davinci/da8xxevm/u-boot-spl-da850evm.lds +2 -7
index d1a82e118af1..c369c14a2558 100644
@@ -36,13 +36,8 @@ SECTIONS
 	.data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
 
 	. = ALIGN(4);
-	__u_boot_list : { KEEP(*(SORT(__u_boot_list*))); } >.sram
-
-	. = ALIGN(4);
-	.rel.dyn : {
-		__rel_dyn_start = .;
-		*(.rel*)
-		__rel_dyn_end = .;
+	__u_boot_list : {
+		KEEP(*(SORT(__u_boot_list*)));
 		. = ALIGN(8);
 	} >.sram
 
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 112 lines

From: Tom Rini <[email protected]>
Sent: Wednesday, January 28, 2026 5:32 AM

As of v2026.01, no platforms contain any rel.dyn sections in their xPL phase images. Their inclusion in linker scripts initially was an oversight as part of taking the full U-Boot linker scripts and modifying them down. Then in commit 8b0ebe054bb3 ("arm: Update linker scripts to ensure appended device tree is aligned") these sections were used to force correct alignment for the device tree. This however, lead to a different problem.

That problem is that when we do not have a separate BSS section in SPL we instead would overlay the BSS with the rel.dyn section, in the common linker script case. This in turn lead to creating an incorrectly sized BSS "pad" file sometimes (depending on arbitrary changes within the rest of the binary itself). This in turn lead to the dtb being in the wrong location in the binary and not found at run time.

This commit fixes a few things:
- Remove the rel.dyn section from all ARM SPL linker scripts.
- In turn, this moves the dtb alignment statement in to another section.
- For ast2600 which uses CONFIG_POSITION_INDEPENDENT we need to keep the
symbols however.

---
I sent this off-list to Fabio first to confirm it finally fixed things.

Cc "Chia-Wei, Wang" <[email protected]>
Cc Adam Ford <[email protected]>
---
 arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds      |  8 --------
 arch/arm/cpu/u-boot-spl.lds                    | 13 ++-----------
 arch/arm/mach-aspeed/ast2600/u-boot-spl.lds    | 16 +++++++---------
 board/davinci/da8xxevm/u-boot-spl-da850evm.lds |  9 ++-------
 4 files changed, 11 insertions(+), 35 deletions(-)
arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds +0 -8
index b4adae272eba..ac166d1d8526 100644
@@ -33,14 +33,6 @@ SECTIONS
 		*(.data*)
 	}
 
-	. = ALIGN(4);
-
-	.rel.dyn : {
-		__rel_dyn_start = .;
-		*(.rel*)
-		__rel_dyn_end = .;
-	}
-
 	.bss : {
 		. = ALIGN(4);
 		__bss_start = .;
arch/arm/cpu/u-boot-spl.lds index renamed from arch/arm/cpu/u-boot-spl.lds +0 -0

d780a5060774..c578c3ebf821 100644

arch/arm/cpu/u-boot-spl.lds +2 -11
@@ -41,23 +41,14 @@ SECTIONS
 		__binman_sym_start = .;
 		KEEP(*(SORT(.binman_sym*)));
 		__binman_sym_end = .;
-	}
-
-	. = ALIGN(4);
-
-	__image_copy_end = .;
-
-	.rel.dyn : {
-		__rel_dyn_start = .;
-		*(.rel*)
-		__rel_dyn_end = .;
 		. = ALIGN(8);
 	}
 
+	__image_copy_end = .;
 	_image_binary_end = .;
 	_end = .;
 
-	.bss __rel_dyn_start (OVERLAY) : {
+	.bss : {
 		__bss_start = .;
 		*(.bss*)
 		 . = ALIGN(8);
arch/arm/mach-aspeed/ast2600/u-boot-spl.lds +7 -2
index c9664a6ce566..303ace2f61ca 100644
@@ -49,19 +49,17 @@ SECTIONS
 		__binman_sym_start = .;
 		KEEP(*(SORT(.binman_sym*)));
 		__binman_sym_end = .;
+		. = ALIGN(8);
 	} > .nor
 
-	. = ALIGN(4);
+	/*
+	 * These platforms enable CONFIG_POSITION_INDEPENDENT and so need
+	 * these names. The always however hold the same value.
+	 */
+	__rel_dyn_start = .;
+	__rel_dyn_end = .;
 
 	__image_copy_end = .;
-

arch/arm/mach-aspeed/ast2600/u-boot-spl.lds SECTIONS · line 65

Quoted 10 lines
arch/arm/mach-aspeed/ast2600/u-boot-spl.lds +0 -7
-	.rel.dyn : {
-		__rel_dyn_start = .;
-		*(.rel*)
-		__rel_dyn_end = .;
-		. = ALIGN(8);
-	} > .nor
-
 	_end = .;
 	_image_binary_end = .;
 

Thanks for the fix.
Aspeed enables PIE mainly for the U-Boot execution. For SPL, the symbols should be fine to be the same.

author
#2 lore raw
Quoted 127 lines · ChiaWei Wang
Quoted 112 lines

From: Tom Rini <[email protected]>
Sent: Wednesday, January 28, 2026 5:32 AM

As of v2026.01, no platforms contain any rel.dyn sections in their xPL phase images. Their inclusion in linker scripts initially was an oversight as part of taking the full U-Boot linker scripts and modifying them down. Then in commit 8b0ebe054bb3 ("arm: Update linker scripts to ensure appended device tree is aligned") these sections were used to force correct alignment for the device tree. This however, lead to a different problem.

That problem is that when we do not have a separate BSS section in SPL we instead would overlay the BSS with the rel.dyn section, in the common linker script case. This in turn lead to creating an incorrectly sized BSS "pad" file sometimes (depending on arbitrary changes within the rest of the binary itself). This in turn lead to the dtb being in the wrong location in the binary and not found at run time.

This commit fixes a few things:
- Remove the rel.dyn section from all ARM SPL linker scripts.
- In turn, this moves the dtb alignment statement in to another section.
- For ast2600 which uses CONFIG_POSITION_INDEPENDENT we need to keep the
symbols however.

---
I sent this off-list to Fabio first to confirm it finally fixed things.

Cc "Chia-Wei, Wang" <[email protected]>
Cc Adam Ford <[email protected]>
---
 arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds      |  8 --------
 arch/arm/cpu/u-boot-spl.lds                    | 13 ++-----------
 arch/arm/mach-aspeed/ast2600/u-boot-spl.lds    | 16 +++++++---------
 board/davinci/da8xxevm/u-boot-spl-da850evm.lds |  9 ++-------
 4 files changed, 11 insertions(+), 35 deletions(-)
arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds +0 -8
index b4adae272eba..ac166d1d8526 100644
@@ -33,14 +33,6 @@ SECTIONS
 		*(.data*)
 	}
 
-	. = ALIGN(4);
-
-	.rel.dyn : {
-		__rel_dyn_start = .;
-		*(.rel*)
-		__rel_dyn_end = .;
-	}
-
 	.bss : {
 		. = ALIGN(4);
 		__bss_start = .;
arch/arm/cpu/u-boot-spl.lds index renamed from arch/arm/cpu/u-boot-spl.lds +0 -0

d780a5060774..c578c3ebf821 100644

arch/arm/cpu/u-boot-spl.lds +2 -11
@@ -41,23 +41,14 @@ SECTIONS
 		__binman_sym_start = .;
 		KEEP(*(SORT(.binman_sym*)));
 		__binman_sym_end = .;
-	}
-
-	. = ALIGN(4);
-
-	__image_copy_end = .;
-
-	.rel.dyn : {
-		__rel_dyn_start = .;
-		*(.rel*)
-		__rel_dyn_end = .;
 		. = ALIGN(8);
 	}
 
+	__image_copy_end = .;
 	_image_binary_end = .;
 	_end = .;
 
-	.bss __rel_dyn_start (OVERLAY) : {
+	.bss : {
 		__bss_start = .;
 		*(.bss*)
 		 . = ALIGN(8);
arch/arm/mach-aspeed/ast2600/u-boot-spl.lds +7 -2
index c9664a6ce566..303ace2f61ca 100644
@@ -49,19 +49,17 @@ SECTIONS
 		__binman_sym_start = .;
 		KEEP(*(SORT(.binman_sym*)));
 		__binman_sym_end = .;
+		. = ALIGN(8);
 	} > .nor
 
-	. = ALIGN(4);
+	/*
+	 * These platforms enable CONFIG_POSITION_INDEPENDENT and so need
+	 * these names. The always however hold the same value.
+	 */
+	__rel_dyn_start = .;
+	__rel_dyn_end = .;
 
 	__image_copy_end = .;
-

arch/arm/mach-aspeed/ast2600/u-boot-spl.lds SECTIONS · line 65

Quoted 10 lines
arch/arm/mach-aspeed/ast2600/u-boot-spl.lds +0 -7
-	.rel.dyn : {
-		__rel_dyn_start = .;
-		*(.rel*)
-		__rel_dyn_end = .;
-		. = ALIGN(8);
-	} > .nor
-
 	_end = .;
 	_image_binary_end = .;
 

Thanks for the fix.
Aspeed enables PIE mainly for the U-Boot execution. For SPL, the symbols should be fine to be the same.

Quoted 1 line

Thanks. Does SPL really execute from address 0x0 on this platform? What confused me for a moment when looking in to this is that we have a non-zero CONFIG_TEXT_BASE but CONFIG_SPL_TEXT_BASE=0x0

Signature · 1 line
Tom
#3 lore raw
Quoted 138 lines

From: Tom Rini <[email protected]>
Sent: Wednesday, January 28, 2026 10:31 PM

Quoted 12 lines · ChiaWei Wang
Quoted 12 lines

From: Tom Rini <[email protected]>
Sent: Wednesday, January 28, 2026 5:32 AM

As of v2026.01, no platforms contain any rel.dyn sections in their xPL phase images. Their inclusion in linker scripts initially was an oversight as part of taking the full U-Boot linker scripts and modifying them down. Then in commit
8b0ebe054bb3 ("arm: Update linker scripts to ensure appended device tree is
aligned") these sections were used to force correct alignment for the device tree. This however, lead to a different problem.

Quoted 4 lines
Quoted 4 lines

That problem is that when we do not have a separate BSS section in SPL we instead would overlay the BSS with the rel.dyn section, in the common linker script case. This in turn lead to creating an incorrectly sized BSS "pad" file sometimes (depending on arbitrary changes

within the rest of the binary itself).

Quoted 7 lines
Quoted 7 lines

This in turn lead to the dtb being in the wrong location in the binary and not found at run time.

This commit fixes a few things:
- Remove the rel.dyn section from all ARM SPL linker scripts.
- In turn, this moves the dtb alignment statement in to another section.
- For ast2600 which uses CONFIG_POSITION_INDEPENDENT we need to

keep

Quoted 82 lines
Quoted 82 lines

the
symbols however.

---
I sent this off-list to Fabio first to confirm it finally fixed things.

Cc "Chia-Wei, Wang" <[email protected]>
Cc Adam Ford <[email protected]>
---
 arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds      |  8 --------
 arch/arm/cpu/u-boot-spl.lds                    | 13 ++-----------
 arch/arm/mach-aspeed/ast2600/u-boot-spl.lds    | 16 +++++++---------
 board/davinci/da8xxevm/u-boot-spl-da850evm.lds |  9 ++-------
 4 files changed, 11 insertions(+), 35 deletions(-)
arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds +0 -8
index b4adae272eba..ac166d1d8526 100644
@@ -33,14 +33,6 @@ SECTIONS
 		*(.data*)
 	}
 
-	. = ALIGN(4);
-
-	.rel.dyn : {
-		__rel_dyn_start = .;
-		*(.rel*)
-		__rel_dyn_end = .;
-	}
-
 	.bss : {
 		. = ALIGN(4);
 		__bss_start = .;
(quoted diff) +0 -0

b/arch/arm/cpu/u-boot-spl.lds index
d780a5060774..c578c3ebf821 100644

arch/arm/cpu/u-boot-spl.lds +2 -11
@@ -41,23 +41,14 @@ SECTIONS
 		__binman_sym_start = .;
 		KEEP(*(SORT(.binman_sym*)));
 		__binman_sym_end = .;
-	}
-
-	. = ALIGN(4);
-
-	__image_copy_end = .;
-
-	.rel.dyn : {
-		__rel_dyn_start = .;
-		*(.rel*)
-		__rel_dyn_end = .;
 		. = ALIGN(8);
 	}
 
+	__image_copy_end = .;
 	_image_binary_end = .;
 	_end = .;
 
-	.bss __rel_dyn_start (OVERLAY) : {
+	.bss : {
 		__bss_start = .;
 		*(.bss*)
 		 . = ALIGN(8);
arch/arm/mach-aspeed/ast2600/u-boot-spl.lds +1 -0
index c9664a6ce566..303ace2f61ca 100644
@@ -49,19 +49,17 @@ SECTIONS
 		__binman_sym_start = .;
 		KEEP(*(SORT(.binman_sym*)));
 		__binman_sym_end = .;
+		. = ALIGN(8);
 	} > .nor
 
Quoted 3 lines

arch/arm/mach-aspeed/ast2600/u-boot-spl.lds SECTIONS

Quoted 3 lines
arch/arm/mach-aspeed/ast2600/u-boot-spl.lds +2 -1
-	. = ALIGN(4);
+	/*
+	 * These platforms enable CONFIG_POSITION_INDEPENDENT and so

need

Quoted 22 lines
Quoted 7 lines
arch/arm/mach-aspeed/ast2600/u-boot-spl.lds +4 -1
+	 * these names. The always however hold the same value.
+	 */
+	__rel_dyn_start = .;
+	__rel_dyn_end = .;
 
 	__image_copy_end = .;
-

arch/arm/mach-aspeed/ast2600/u-boot-spl.lds SECTIONS · line 65

Quoted 10 lines
arch/arm/mach-aspeed/ast2600/u-boot-spl.lds +0 -7
-	.rel.dyn : {
-		__rel_dyn_start = .;
-		*(.rel*)
-		__rel_dyn_end = .;
-		. = ALIGN(8);
-	} > .nor
-
 	_end = .;
 	_image_binary_end = .;
 

Thanks for the fix.
Aspeed enables PIE mainly for the U-Boot execution. For SPL, the symbols should be fine to be the same.

Quoted 5 lines
Quoted 1 line

Thanks. Does SPL really execute from address 0x0 on this platform? What confused me for a moment when looking in to this is that we have a non-zero CONFIG_TEXT_BASE but CONFIG_SPL_TEXT_BASE=0x0

Yes, SPL executes from address 0x0.
This is backed by the configurable bus address decoding.
Depending on the boot media, ROM will configure the bus setting so that 0x0 will be decoded to either SRAM or SPI NOR Flash for XIP.

Regards,
Chiawei

author
#4 lore raw
Quoted 140 lines · ChiaWei Wang
Quoted 140 lines

From: Tom Rini <[email protected]>
Sent: Wednesday, January 28, 2026 10:31 PM

Quoted 12 lines · ChiaWei Wang
Quoted 12 lines

From: Tom Rini <[email protected]>
Sent: Wednesday, January 28, 2026 5:32 AM

As of v2026.01, no platforms contain any rel.dyn sections in their xPL phase images. Their inclusion in linker scripts initially was an oversight as part of taking the full U-Boot linker scripts and modifying them down. Then in commit
8b0ebe054bb3 ("arm: Update linker scripts to ensure appended device tree is
aligned") these sections were used to force correct alignment for the device tree. This however, lead to a different problem.

Quoted 4 lines
Quoted 4 lines

That problem is that when we do not have a separate BSS section in SPL we instead would overlay the BSS with the rel.dyn section, in the common linker script case. This in turn lead to creating an incorrectly sized BSS "pad" file sometimes (depending on arbitrary changes

within the rest of the binary itself).

Quoted 7 lines
Quoted 7 lines

This in turn lead to the dtb being in the wrong location in the binary and not found at run time.

This commit fixes a few things:
- Remove the rel.dyn section from all ARM SPL linker scripts.
- In turn, this moves the dtb alignment statement in to another section.
- For ast2600 which uses CONFIG_POSITION_INDEPENDENT we need to

keep

Quoted 82 lines
Quoted 82 lines

the
symbols however.

---
I sent this off-list to Fabio first to confirm it finally fixed things.

Cc "Chia-Wei, Wang" <[email protected]>
Cc Adam Ford <[email protected]>
---
 arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds      |  8 --------
 arch/arm/cpu/u-boot-spl.lds                    | 13 ++-----------
 arch/arm/mach-aspeed/ast2600/u-boot-spl.lds    | 16 +++++++---------
 board/davinci/da8xxevm/u-boot-spl-da850evm.lds |  9 ++-------
 4 files changed, 11 insertions(+), 35 deletions(-)
arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds +0 -8
index b4adae272eba..ac166d1d8526 100644
@@ -33,14 +33,6 @@ SECTIONS
 		*(.data*)
 	}
 
-	. = ALIGN(4);
-
-	.rel.dyn : {
-		__rel_dyn_start = .;
-		*(.rel*)
-		__rel_dyn_end = .;
-	}
-
 	.bss : {
 		. = ALIGN(4);
 		__bss_start = .;
(quoted diff) +0 -0

b/arch/arm/cpu/u-boot-spl.lds index
d780a5060774..c578c3ebf821 100644

arch/arm/cpu/u-boot-spl.lds +2 -11
@@ -41,23 +41,14 @@ SECTIONS
 		__binman_sym_start = .;
 		KEEP(*(SORT(.binman_sym*)));
 		__binman_sym_end = .;
-	}
-
-	. = ALIGN(4);
-
-	__image_copy_end = .;
-
-	.rel.dyn : {
-		__rel_dyn_start = .;
-		*(.rel*)
-		__rel_dyn_end = .;
 		. = ALIGN(8);
 	}
 
+	__image_copy_end = .;
 	_image_binary_end = .;
 	_end = .;
 
-	.bss __rel_dyn_start (OVERLAY) : {
+	.bss : {
 		__bss_start = .;
 		*(.bss*)
 		 . = ALIGN(8);
arch/arm/mach-aspeed/ast2600/u-boot-spl.lds +1 -0
index c9664a6ce566..303ace2f61ca 100644
@@ -49,19 +49,17 @@ SECTIONS
 		__binman_sym_start = .;
 		KEEP(*(SORT(.binman_sym*)));
 		__binman_sym_end = .;
+		. = ALIGN(8);
 	} > .nor
 
Quoted 3 lines

arch/arm/mach-aspeed/ast2600/u-boot-spl.lds SECTIONS

Quoted 3 lines
arch/arm/mach-aspeed/ast2600/u-boot-spl.lds +2 -1
-	. = ALIGN(4);
+	/*
+	 * These platforms enable CONFIG_POSITION_INDEPENDENT and so

need

Quoted 23 lines
Quoted 7 lines
arch/arm/mach-aspeed/ast2600/u-boot-spl.lds +4 -1
+	 * these names. The always however hold the same value.
+	 */
+	__rel_dyn_start = .;
+	__rel_dyn_end = .;
 
 	__image_copy_end = .;
-

arch/arm/mach-aspeed/ast2600/u-boot-spl.lds SECTIONS · line 65

Quoted 10 lines
arch/arm/mach-aspeed/ast2600/u-boot-spl.lds +0 -7
-	.rel.dyn : {
-		__rel_dyn_start = .;
-		*(.rel*)
-		__rel_dyn_end = .;
-		. = ALIGN(8);
-	} > .nor
-
 	_end = .;
 	_image_binary_end = .;
 

Thanks for the fix.
Aspeed enables PIE mainly for the U-Boot execution. For SPL, the symbols should be fine to be the same.

Quoted 8 lines
Quoted 3 lines

Thanks. Does SPL really execute from address 0x0 on this platform? What confused me for a moment when looking in to this is that we have a non-zero CONFIG_TEXT_BASE but CONFIG_SPL_TEXT_BASE=0x0

Yes, SPL executes from address 0x0.
This is backed by the configurable bus address decoding. Depending on the boot media, ROM will configure the bus setting so that 0x0 will be decoded to either SRAM or SPI NOR Flash for XIP.

Ah, neat! It would be nice to have that in the board docs someday ;)

Signature · 1 line
Tom
author
#5 lore raw
In reply to Tom Rini
Quoted 9 lines · Tom Rini

As of v2026.01, no platforms contain any rel.dyn sections in their xPL phase images. Their inclusion in linker scripts initially was an oversight as part of taking the full U-Boot linker scripts and modifying them down. Then in commit 8b0ebe054bb3 ("arm: Update linker scripts to ensure appended device tree is aligned") these sections were used to force correct alignment for the device tree. This however, lead to a different problem.

[...]

Applied to u-boot/master, thanks!

[1/1] arm: Remove rel.dyn from SPL linker scripts

      commit: 5ffc1dcc26d3df9e2b192151936cb98014fb6e49
Signature · 1 line
Tom