Clean up AMD64 memory management code, remove dependency on pd.lock

This commit is contained in:
2026-01-27 19:03:03 +01:00
parent 8bda300f6a
commit a3b62ebd3d
14 changed files with 104 additions and 178 deletions

View File

@@ -6,6 +6,8 @@ PHDRS {
text PT_LOAD;
rodata PT_LOAD;
data PT_LOAD;
tls PT_TLS;
bss PT_LOAD;
}
SECTIONS {
@@ -21,15 +23,35 @@ SECTIONS {
*(.rodata .rodata.*)
} :rodata
.note.gnu.build-id : {
*(.note.gnu.build-id)
} :rodata
. = ALIGN(CONSTANT(MAXPAGESIZE));
.data : {
*(.data .data.*)
} :data
. = ALIGN(CONSTANT(MAXPAGESIZE));
__tdata_start = .;
.tdata : {
*(.tdata .tdata.*)
} :data :tls
__tdata_end = .;
. = ALIGN(CONSTANT(MAXPAGESIZE));
__tbss_start = .;
.tbss : {
*(.tbss .tbss.*)
} :bss :tls
__tbss_end = .;
. = ALIGN(CONSTANT(MAXPAGESIZE));
__tls_size = __tbss_end - __tdata_start;
__bss_start = .;