Skip to content
Snippets Groups Projects
Commit af870ef9 authored by Avi Kivity's avatar Avi Kivity
Browse files

build: emit .tdata sections into the PT_LOAD segment

This ensures that initialized thread local variables are loaded into the
memory image and are usable.
parent 01b059e1
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,8 @@ SECTIONS
_init_array_start = .;
.init_array : { *(SORT_BY_INIT_PRIORITY(.init_array.*)) } :text
_init_array_end = .;
.tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) } :tls
.tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) } :tls
.tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) } :tls :text
.tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) } :tls :text
.bss : { *(.bss .bss.*) } :text
.edata = .;
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment