zephyr/boards/posix/common/natsim_linker_script.ld
Alberto Escolar Piedras fa7ab41c1b native_simulator: Be sure the symbol_to_keep section is kept
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>
2023-09-21 11:53:45 +02:00

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
*/