diff --git a/kernel/src/arch/aarch64/boot/linker.ld b/kernel/src/arch/aarch64/boot/linker.ld index 4e45cbf0..b9b24f36 100644 --- a/kernel/src/arch/aarch64/boot/linker.ld +++ b/kernel/src/arch/aarch64/boot/linker.ld @@ -21,6 +21,7 @@ SECTIONS { .data : { sdata = .; *(.data .data.* .gnu.linkonce.d*) + *(.sdata .sdata.*) . = ALIGN(4K); edata = .; } diff --git a/kernel/src/arch/mipsel/boot/linker.ld.S b/kernel/src/arch/mipsel/boot/linker.ld.S index 07321d61..158af22c 100644 --- a/kernel/src/arch/mipsel/boot/linker.ld.S +++ b/kernel/src/arch/mipsel/boot/linker.ld.S @@ -36,6 +36,7 @@ SECTIONS .data : { sdata = .; *(.data .data.*) + *(.sdata .sdata.*) edata = .; } diff --git a/kernel/src/arch/riscv/board/u540/linker.ld b/kernel/src/arch/riscv/board/u540/linker.ld index beb246b0..634e8838 100644 --- a/kernel/src/arch/riscv/board/u540/linker.ld +++ b/kernel/src/arch/riscv/board/u540/linker.ld @@ -35,6 +35,7 @@ SECTIONS .data : { sdata = .; *(.data .data.*) + *(.sdata .sdata.*) edata = .; } diff --git a/kernel/src/arch/riscv/boot/linker32.ld b/kernel/src/arch/riscv/boot/linker32.ld index acb5d7a0..83b1604a 100644 --- a/kernel/src/arch/riscv/boot/linker32.ld +++ b/kernel/src/arch/riscv/boot/linker32.ld @@ -40,6 +40,7 @@ SECTIONS .data : { sdata = .; *(.data .data.*) + *(.sdata .sdata.*) edata = .; } diff --git a/kernel/src/arch/riscv/boot/linker64.ld b/kernel/src/arch/riscv/boot/linker64.ld index beb246b0..634e8838 100644 --- a/kernel/src/arch/riscv/boot/linker64.ld +++ b/kernel/src/arch/riscv/boot/linker64.ld @@ -35,6 +35,7 @@ SECTIONS .data : { sdata = .; *(.data .data.*) + *(.sdata .sdata.*) edata = .; } diff --git a/kernel/src/arch/x86_64/linker.ld b/kernel/src/arch/x86_64/linker.ld index a7489a93..46a248af 100644 --- a/kernel/src/arch/x86_64/linker.ld +++ b/kernel/src/arch/x86_64/linker.ld @@ -24,6 +24,7 @@ SECTIONS { .data ALIGN(4K): { *(.data .data.*) + *(.sdata .sdata.*) } .got ALIGN(4K):