1# SPDX-License-Identifier: Apache-2.0
2# The contents of this file is based on include/zephyr/linker/kobject-text.ld
3# Please keep in sync
4
5if(CONFIG_USERSPACE)
6  zephyr_linker_section(NAME _kobject_text_area
7                        GROUP TEXT_REGION NOINPUT)
8
9  zephyr_linker_section_configure(
10    SECTION
11    _kobject_text_area
12    INPUT
13    ".kobject_data.literal*"
14    ".kobject_data.text*"
15    MIN_SIZE ${CONFIG_KOBJECT_TEXT_AREA}
16    MAX_SIZE ${CONFIG_KOBJECT_TEXT_AREA}
17    SYMBOLS
18    _kobject_text_area_start
19    _kobject_text_area_end
20    )
21  zephyr_linker_symbol(
22    SYMBOL
23    _kobject_text_area_used
24    EXPR
25    "(@_kobject_text_area_end@ - @_kobject_text_area_start@)"
26    )
27endif()
28