1 /* 2 * Copyright (c) 2025 Arduino SA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /* This extension exports a number of symbols to be used by the LLEXT 8 * inspection APIs. Each symbol is exported within a different section 9 * and only the addresses are checked in this test. 10 */ 11 12 #include <zephyr/llext/symbol.h> 13 14 int number_in_bss; 15 int number_in_data = 1; 16 const int number_in_rodata = 2; 17 const int number_in_my_rodata Z_GENERIC_SECTION(.my_rodata) = 3; 18 function_in_text(void)19void function_in_text(void) 20 { 21 /* only used for address check */ 22 } 23 24 EXPORT_SYMBOL(number_in_bss); 25 EXPORT_SYMBOL(number_in_data); 26 EXPORT_SYMBOL(number_in_rodata); 27 EXPORT_SYMBOL(number_in_my_rodata); 28 EXPORT_SYMBOL(function_in_text); 29