mirror of
https://github.com/rdmsr/zag.git
synced 2026-11-01 23:58:21 +00:00
fix(build): fix linker script percpu data position
This commit is contained in:
@@ -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. */
|
||||||
|
|||||||
Reference in New Issue
Block a user