Skip to contentSkip to conversation

Arm32: restore proper name of .dtb section start symbol

PATCH In review Jan Beulich 2 participants 2 messages Jul 25, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Arm32: restore proper name of .dtb section start symbol

This addresses a build failure when CONFIG_DTB_FILE evaluates to a non- empty string.

Fixes d07358f2dccd ("xen/arm32: head.S: Introduce a macro to load the physical address of a symbol")

---
Of course this really would be a prime candidate for avoiding the use of linker-script-defined symbols in the first place, by using .startof.(.dtb). If only Clang also supported that ...

xen/arch/arm/arm32/head.S +1 -1
@@ -162,7 +162,7 @@ past_zImage:
 
         /* Using the DTB in the .dtb section? */
 .ifnes CONFIG_DTB_FILE,""
-        load_paddr r8, _stdb
+        load_paddr r8, _sdtb
 .endif
 
         /* Initialize the UART if earlyprintk has been enabled. */
Reviewed-by on v1 1/1
#1 lore raw

Hi Jan,

Quoted 7 lines · Jan Beulich

This addresses a build failure when CONFIG_DTB_FILE evaluates to a non- empty string.

Fixes d07358f2dccd ("xen/arm32: head.S: Introduce a macro to load the physical address of a symbol")

Cheers
Bertrand

Quoted 16 lines

---
Of course this really would be a prime candidate for avoiding the use of linker-script-defined symbols in the first place, by using .startof.(.dtb). If only Clang also supported that ...

xen/arch/arm/arm32/head.S +0 -0
@@ -162,7 +162,7 @@ past_zImage:
 
        /* Using the DTB in the .dtb section? */

.ifnes CONFIG_DTB_FILE,""

xen/arch/arm/arm32/head.S +1 -1
-        load_paddr r8, _stdb
+        load_paddr r8, _sdtb

.endif

        /* Initialize the UART if earlyprintk has been enabled. */