mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-12 17:02:48 +00:00
The native simulator final link can garbage collect unused symbols. So let's ensure the symbol to keep ones are indeed kept even if not used. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
23 lines
357 B
Plaintext
23 lines
357 B
Plaintext
/*
|
|
* Copyright (c) 2023 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
* @brief Extra linker command/script file for the native simulator runner
|
|
*/
|
|
|
|
SECTIONS
|
|
{
|
|
symbol_to_keep :
|
|
{
|
|
KEEP(*(symbol_to_keep*));
|
|
}
|
|
} INSERT AFTER .data;
|
|
|
|
/*
|
|
* Note this script augments the default native simulator linker script
|
|
*/
|