mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-04 04:21:56 +00:00
_k_syscall_table is an array of function pointers and is declared as such in C sources, this makes it an STT_OBJECT[0] in the symbol table. But when the same symbol is declared in assembly, it is declared to be a function, which would make the symbol an STT_FUNC. When linking with LTO this type inconsistency results in the warning: real-ld: Warning: type of symbol `_k_syscall_table' changed from 2 to 1 in /tmp/cc84ofK0.ltrans8.ltrans.o To fix this warning we declare the table with GDATA instead of GTEXT, which will change the type from 'function' to 'object'. [0] https://docs.oracle.com/cd/E19455-01/816-0559/chapter6-79797/index.html Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no> |
||
---|---|---|
.. | ||
offsets | ||
cache_s.S | ||
cache.c | ||
CMakeLists.txt | ||
cpuhalt.c | ||
crt0.S | ||
excstub.S | ||
fatal.c | ||
float.c | ||
intstub.S | ||
irq_manage.c | ||
irq_offload.c | ||
Kconfig | ||
reboot_rst_cnt.c | ||
spec_ctrl.c | ||
swap.S | ||
sys_fatal_error_handler.c | ||
thread.c | ||
userspace.S | ||
x86_mmu.c |