Skip to content

Commit

Permalink
lld seems to need all TLS sections defined in header
Browse files Browse the repository at this point in the history
  • Loading branch information
Votre Nom authored and Votre Nom committed Feb 5, 2023
1 parent 888660d commit 174cb24
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion bindings/solo5_hvt.lds
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ PHDRS {

data PT_LOAD;
tdata PT_TLS;
tbss PT_TLS;
note.not_openbsd PT_NOTE; /* Must come first. */
note.abi PT_NOTE;
note.manifest PT_NOTE;
Expand Down Expand Up @@ -131,7 +132,7 @@ SECTIONS {
.tbss (NOLOAD) :
{
*(.tbss)
}
} :tbss

. = ALIGN(CONSTANT(MAXPAGESIZE));
_ebss = .;
Expand Down
3 changes: 2 additions & 1 deletion bindings/solo5_muen.lds
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ PHDRS {
rodata PT_LOAD;
data PT_LOAD;
tdata PT_TLS;
tbss PT_TLS;
note.not_openbsd PT_NOTE; /* Must come first. */
note.abi PT_NOTE;
note.manifest PT_NOTE;
Expand Down Expand Up @@ -130,7 +131,7 @@ SECTIONS {
.tbss (NOLOAD) :
{
*(.tbss)
}
} :tbss

. = ALIGN(CONSTANT(MAXPAGESIZE));
_ebss = .;
Expand Down
3 changes: 2 additions & 1 deletion bindings/solo5_spt.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ PHDRS {
FLAGS values come from PF_x in elf.h */
data PT_LOAD;
tdata PT_TLS;
tbss PT_TLS;
note.not_openbsd PT_NOTE; /* Must come first. */
note.abi PT_NOTE;
note.manifest PT_NOTE;
Expand Down Expand Up @@ -129,7 +130,7 @@ SECTIONS {
.tbss (NOLOAD):
{
*(.tbss)
}
} :tbss

. = ALIGN(CONSTANT(MAXPAGESIZE));
_ebss = .;
Expand Down
3 changes: 2 additions & 1 deletion bindings/solo5_stub.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ PHDRS {
FLAGS values come from PF_x in elf.h */
data PT_LOAD;
tdata PT_TLS;
tbss PT_TLS;
note.not_openbsd PT_NOTE; /* Must come first. */
note.abi PT_NOTE;
note.manifest PT_NOTE;
Expand Down Expand Up @@ -129,7 +130,7 @@ SECTIONS {
.tbss (NOLOAD):
{
*(.tbss)
}
} :tbss

. = ALIGN(CONSTANT(MAXPAGESIZE));
_ebss = .;
Expand Down
3 changes: 2 additions & 1 deletion bindings/solo5_virtio.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ PHDRS {
FLAGS values come from PF_x in elf.h */
data PT_LOAD;
tdata PT_TLS;
tbss PT_TLS;
note.not_openbsd PT_NOTE; /* Must come first. */
note.abi PT_NOTE;
note.manifest PT_NOTE;
Expand Down Expand Up @@ -130,7 +131,7 @@ SECTIONS {
.tbss (NOLOAD) :
{
*(.tbss)
}
} :tbss

. = ALIGN(CONSTANT(MAXPAGESIZE));
_ebss = .;
Expand Down
3 changes: 2 additions & 1 deletion bindings/solo5_xen.lds
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ PHDRS {
FLAGS values come from PF_x in elf.h */
data PT_LOAD;
tdata PT_TLS;
tbss PT_TLS;
note.not_openbsd PT_NOTE; /* Must come first. */
note.xen PT_NOTE;
note.abi PT_NOTE;
Expand Down Expand Up @@ -135,7 +136,7 @@ SECTIONS {
.tbss (NOLOAD) :
{
*(.tbss)
}
} :tbss

. = ALIGN(CONSTANT(MAXPAGESIZE));
_ebss = .;
Expand Down

0 comments on commit 174cb24

Please sign in to comment.