Skip to content

Commit

Permalink
Add sbss to bss sections
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Mar 6, 2021
1 parent fe7fd02 commit e2ba52d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions kernel/src/arch/aarch64/boot/linker.ld
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ SECTIONS {
. = ALIGN(32);
sbss = .;
*(.bss .bss.*)
*(.sbss .sbss.*)
*(COMMON)
. = ALIGN(4K);
ebss = .;
Expand Down
1 change: 1 addition & 0 deletions kernel/src/arch/mipsel/boot/linker.ld.S
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ SECTIONS
.bss : {
sbss = .;
*(.bss .bss.*)
*(.sbss .sbss.*)
ebss = .;
}

Expand Down
1 change: 1 addition & 0 deletions kernel/src/arch/riscv/board/u540/linker.ld
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ SECTIONS
.bss : {
sbss = .;
*(.bss .bss.*)
*(.sbss .sbss.*)
ebss = .;
}

Expand Down
1 change: 1 addition & 0 deletions kernel/src/arch/riscv/boot/linker32.ld
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ SECTIONS
.bss : {
sbss = .;
*(.bss .bss.*)
*(.sbss .sbss.*)
ebss = .;
}

Expand Down
1 change: 1 addition & 0 deletions kernel/src/arch/riscv/boot/linker64.ld
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ SECTIONS
.bss : {
sbss = .;
*(.bss .bss.*)
*(.sbss .sbss.*)
ebss = .;
}

Expand Down
1 change: 1 addition & 0 deletions kernel/src/arch/x86_64/linker.ld
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ SECTIONS {
.bss ALIGN(4K):
{
*(.bss .bss.*)
*(.sbss .sbss.*)
}
}

0 comments on commit e2ba52d

Please sign in to comment.