From 976a598835ece553a3b042407d029e375f5a4446 Mon Sep 17 00:00:00 2001 From: Josh Junon Date: Sat, 27 Jul 2024 22:38:35 +0200 Subject: [PATCH] kernel: put .debug_gdb_scripts before bss sections --- oro-kernel/bin/aarch64.x | 10 +++++----- oro-kernel/bin/x86_64.x | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/oro-kernel/bin/aarch64.x b/oro-kernel/bin/aarch64.x index ec6da96e..169eb036 100644 --- a/oro-kernel/bin/aarch64.x +++ b/oro-kernel/bin/aarch64.x @@ -42,15 +42,15 @@ SECTIONS { . = ALIGN(4096); - .bss : { - *(COMMON) - *(.bss .bss.*) /* MUST be last allocated to :data */ + .debug_gdb_scripts : { + KEEP(*(.debug_gdb_scripts .debug_gdb_scripts.*)) } :data . = ALIGN(4096); - .debug_gdb_scripts : { - KEEP(*(.debug_gdb_scripts .debug_gdb_scripts.*)) + .bss : { + *(COMMON) + *(.bss .bss.*) /* MUST be last allocated to :data */ } :data /DISCARD/ : { diff --git a/oro-kernel/bin/x86_64.x b/oro-kernel/bin/x86_64.x index acf5deea..123fd614 100644 --- a/oro-kernel/bin/x86_64.x +++ b/oro-kernel/bin/x86_64.x @@ -34,15 +34,15 @@ SECTIONS { . = ALIGN(4096); - .bss : { - *(COMMON) - *(.bss .bss.*) /* MUST be last allocated to :data */ + .debug_gdb_scripts : { + KEEP(*(.debug_gdb_scripts .debug_gdb_scripts.*)) } :data . = ALIGN(4096); - .debug_gdb_scripts : { - KEEP(*(.debug_gdb_scripts .debug_gdb_scripts.*)) + .bss : { + *(COMMON) + *(.bss .bss.*) /* MUST be last allocated to :data */ } :data /DISCARD/ : {