[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen staging] RISC-V: place .sdata / .srodata / .riscv.attributes



commit c01408981554e59ba4f6d0ac492f431e3aa313fa
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Tue Sep 1 09:55:13 2026 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Sep 1 09:55:13 2026 +0200

    RISC-V: place .sdata / .srodata / .riscv.attributes
    
    Of the short-data sections, only .sbss is presently mentioned in the
    linker script. Place them next to, but ahead of their "normal" data
    sections.
    
    .riscv.attributes can go towards the tail of the image, next to (ahead of)
    debug info.
    
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
    Reviewed-by: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>
---
 xen/arch/riscv/xen.lds.S | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/xen/arch/riscv/xen.lds.S b/xen/arch/riscv/xen.lds.S
index 65f136dce9..70db658fef 100644
--- a/xen/arch/riscv/xen.lds.S
+++ b/xen/arch/riscv/xen.lds.S
@@ -44,6 +44,8 @@ SECTIONS
 
         BUGFRAMES
 
+        *(.srodata)
+        *(.srodata.*)
         *(.rodata)
         *(.rodata.*)
         VPCI_ARRAY
@@ -92,6 +94,7 @@ SECTIONS
         SCHEDULER_ARRAY
         HYPFS_PARAM
 
+        *(.sdata .sdata.*)
         *(.data .data.*)
         CONSTRUCTORS
     } :text
@@ -162,6 +165,8 @@ SECTIONS
     /* Section for the device tree blob (if any). */
     .dtb : { *(.dtb) } :text
 
+    .riscv.attributes : { *(.riscv.attributes) }
+
     DWARF2_DEBUG_SECTIONS
 
     DISCARD_SECTIONS
--
generated by git-patchbot for /home/xen/git/xen.git#staging



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.