mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-13 00:18:34 +00:00
(OPTIONAL) was a vestiage from the initial import of the Zephyr code base and we dont utilize it with the GNU linker. Additionally, the way (OPTIONAL) gets defined to nothing creates a linker script that lld (from llvm) doesn't like. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
23 lines
567 B
Plaintext
23 lines
567 B
Plaintext
/*
|
|
* Copyright (c) 2018 Oticon A/S
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#define NATIVE_INIT_LEVEL(level) \
|
|
__native_##level##_tasks_start = .; \
|
|
KEEP(*(SORT(.native_##level[0-9]_task))); \
|
|
KEEP(*(SORT(.native_##level[1-9][0-9]_task))); \
|
|
KEEP(*(SORT(.native_##level[1-9][0-9][0-9]_task))); \
|
|
|
|
SECTION_PROLOGUE (native_pre_tasks,,)
|
|
{
|
|
__native_tasks_start = .;
|
|
NATIVE_INIT_LEVEL(PRE_BOOT_1)
|
|
NATIVE_INIT_LEVEL(PRE_BOOT_2)
|
|
NATIVE_INIT_LEVEL(PRE_BOOT_3)
|
|
NATIVE_INIT_LEVEL(FIRST_SLEEP)
|
|
NATIVE_INIT_LEVEL(ON_EXIT)
|
|
__native_tasks_end = .;
|
|
}
|