fix(build): fix linker script percpu data position

This commit is contained in:
Loïc Grégoire
2026-04-14 22:19:44 -04:00
parent 52434d65e2
commit ddb1ce185f
+5 -4
View File
@@ -70,16 +70,17 @@ SECTIONS
rodata_end_addr = .; rodata_end_addr = .;
data_start_addr = .; data_start_addr = .;
.data : {
*(.data .data.*)
} :data
.data.percpu : { .data.percpu : {
__percpu_start = .; __percpu_start = .;
*(.data.percpu) KEEP(*(.data.percpu .data.percpu.*))
__percpu_end = .; __percpu_end = .;
} :data } :data
.data : {
*(.data .data.*)
} :data
/* NOTE: .bss needs to be the last thing mapped to :data, otherwise lots of */ /* NOTE: .bss needs to be the last thing mapped to :data, otherwise lots of */
/* unnecessary zeros will be written to the binary. */ /* unnecessary zeros will be written to the binary. */