Skip to content

Commit

Permalink
Add sdata to data section
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Mar 6, 2021
1 parent e2ba52d commit f98a482
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 @@ -21,6 +21,7 @@ SECTIONS {
.data : {
sdata = .;
*(.data .data.* .gnu.linkonce.d*)
*(.sdata .sdata.*)
. = ALIGN(4K);
edata = .;
}
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 @@ -36,6 +36,7 @@ SECTIONS
.data : {
sdata = .;
*(.data .data.*)
*(.sdata .sdata.*)
edata = .;
}

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 @@ -35,6 +35,7 @@ SECTIONS
.data : {
sdata = .;
*(.data .data.*)
*(.sdata .sdata.*)
edata = .;
}

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 @@ -40,6 +40,7 @@ SECTIONS
.data : {
sdata = .;
*(.data .data.*)
*(.sdata .sdata.*)
edata = .;
}

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 @@ -35,6 +35,7 @@ SECTIONS
.data : {
sdata = .;
*(.data .data.*)
*(.sdata .sdata.*)
edata = .;
}

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 @@ -24,6 +24,7 @@ SECTIONS {
.data ALIGN(4K):
{
*(.data .data.*)
*(.sdata .sdata.*)
}

.got ALIGN(4K):
Expand Down

0 comments on commit f98a482

Please sign in to comment.