zephyr/arch
Sebastian Bøe 69d8c1c08c syscalls: Correct the type of _k_syscall_table
_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>
2018-08-26 08:54:27 -07:00
..
arc boards: cleanup and update the default config of arc boards 2018-08-24 09:31:24 -07:00
arm syscalls: Correct the type of _k_syscall_table 2018-08-26 08:54:27 -07:00
common tests: benchmarks: timing_info: Enable benchmarks for riscv32. 2018-08-20 06:51:25 -07:00
nios2 systemview: add support natively using tracing hooks 2018-08-21 05:45:47 -07:00
posix systemview: add support natively using tracing hooks 2018-08-21 05:45:47 -07:00
riscv32 systemview: add support natively using tracing hooks 2018-08-21 05:45:47 -07:00
x86 syscalls: Correct the type of _k_syscall_table 2018-08-26 08:54:27 -07:00
xtensa systemview: add support natively using tracing hooks 2018-08-21 05:45:47 -07:00
CMakeLists.txt arch: Cmake: Add __ZEPHYR_SUPERVISOR__ macro for arch files. 2018-05-15 17:48:18 +03:00
Kconfig Kconfig: Use a short, consistent style for prompts 2018-08-15 04:10:10 -07:00