Skip to content

Commit

Permalink
kernel: put .debug_gdb_scripts before bss sections
Browse files Browse the repository at this point in the history
  • Loading branch information
Qix- committed Jul 27, 2024
1 parent 2258c25 commit 976a598
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions oro-kernel/bin/aarch64.x
Original file line number Diff line number Diff line change
Expand Up @@ -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/ : {
Expand Down
10 changes: 5 additions & 5 deletions oro-kernel/bin/x86_64.x
Original file line number Diff line number Diff line change
Expand Up @@ -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/ : {
Expand Down

0 comments on commit 976a598

Please sign in to comment.