You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
816 B
20 lines
816 B
# SPDX-License-Identifier: Apache-2.0 |
|
# The contents of this file is based on include/zephyr/linker/kobject-rom.ld |
|
# Please keep in sync |
|
|
|
# During LINKER_KOBJECT_PREBUILT and LINKER_ZEPHYR_PREBUILT, |
|
# space needs to be reserved for the rodata that will be |
|
# produced by gperf during the final stages of linking. |
|
# The alignment and size are produced by |
|
# scripts/build/gen_kobject_placeholders.py. These are here |
|
# so the addresses to kobjects would remain the same |
|
# during the final stages of linking (LINKER_ZEPHYR_FINAL). |
|
|
|
if(CONFIG_USERSPACE) |
|
# By the magic of MIN_SIZE the space will be there |
|
zephyr_linker_section_configure(SECTION .rodata KEEP INPUT ".kobject_data.rodata*" |
|
MIN_SIZE @KOBJECT_RODATA_SZ@ |
|
ALIGN @KOBJECT_RODATA_ALIGN@ |
|
PASS LINKER_ZEPHYR_PREBUILT LINKER_ZEPHYR_FINAL |
|
) |
|
endif()
|
|
|