Skip to content

Commit

Permalink
Merge pull request #551 from codelabs-ch/fix-bss-initialization
Browse files Browse the repository at this point in the history
Fix .bss initialization
  • Loading branch information
dinosaure committed Apr 18, 2023
2 parents d0fac51 + 4e13b07 commit b9b2888
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions bindings/solo5_hvt.lds
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ PHDRS {
data PT_LOAD;
tdata PT_LOAD FLAGS(4); /* RO: this have to be copied into each thread */
tbss PT_TLS FLAGS(0); /* no perm needed */
bss PT_NULL FLAGS(0);
bss PT_LOAD;
note.not_openbsd PT_NOTE; /* Must come first. */
note.abi PT_NOTE;
note.manifest PT_NOTE;
Expand Down Expand Up @@ -119,7 +119,7 @@ SECTIONS {

. = ALIGN(CONSTANT(MAXPAGESIZE));
/*
* tdata and tbss have to be side by side to help the linker caculate the
* tdata and tbss have to be side by side to help the linker calculate the
* various __thread variables offsets.
*/
.tdata :
Expand Down
4 changes: 2 additions & 2 deletions bindings/solo5_muen.lds
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ PHDRS {
data PT_LOAD;
tdata PT_LOAD FLAGS(4); /* RO: this have to be copied into each thread */
tbss PT_TLS FLAGS(0); /* no perm needed */
bss PT_NULL FLAGS(0);
bss PT_LOAD;
note.not_openbsd PT_NOTE; /* Must come first. */
note.abi PT_NOTE;
note.manifest PT_NOTE;
Expand Down Expand Up @@ -118,7 +118,7 @@ SECTIONS {

. = ALIGN(CONSTANT(MAXPAGESIZE));
/*
* tdata and tbss have to be side by side to help the linker caculate the
* tdata and tbss have to be side by side to help the linker calculate the
* various __thread variables offsets.
*/
.tdata :
Expand Down
4 changes: 2 additions & 2 deletions bindings/solo5_spt.lds
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ PHDRS {
data PT_LOAD;
tdata PT_LOAD FLAGS(4); /* RO: this have to be copied into each thread */
tbss PT_TLS FLAGS(0); /* no perm needed */
bss PT_NULL FLAGS(0);
bss PT_LOAD;
note.not_openbsd PT_NOTE; /* Must come first. */
note.abi PT_NOTE;
note.manifest PT_NOTE;
Expand Down Expand Up @@ -117,7 +117,7 @@ SECTIONS {

. = ALIGN(CONSTANT(MAXPAGESIZE));
/*
* tdata and tbss have to be side by side to help the linker caculate the
* tdata and tbss have to be side by side to help the linker calculate the
* various __thread variables offsets.
*/
.tdata :
Expand Down
2 changes: 1 addition & 1 deletion bindings/solo5_stub.lds
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ SECTIONS {

. = ALIGN(CONSTANT(MAXPAGESIZE));
/*
* tdata and tbss have to be side by side to help the linker caculate the
* tdata and tbss have to be side by side to help the linker calculate the
* various __thread variables offsets.
*/
.tdata :
Expand Down
2 changes: 1 addition & 1 deletion bindings/solo5_virtio.lds
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ SECTIONS {

. = ALIGN(CONSTANT(MAXPAGESIZE));
/*
* tdata and tbss have to be side by side to help the linker caculate the
* tdata and tbss have to be side by side to help the linker calculate the
* various __thread variables offsets.
*/
.tdata :
Expand Down
2 changes: 1 addition & 1 deletion bindings/solo5_xen.lds
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ SECTIONS {

. = ALIGN(CONSTANT(MAXPAGESIZE));
/*
* tdata and tbss have to be side by side to help the linker caculate the
* tdata and tbss have to be side by side to help the linker calculate the
* various __thread variables offsets.
*/
.tdata :
Expand Down

0 comments on commit b9b2888

Please sign in to comment.