kallsyms_internal.h 907 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. #ifndef LINUX_KALLSYMS_INTERNAL_H_
  3. #define LINUX_KALLSYMS_INTERNAL_H_
  4. #include <linux/types.h>
  5. /*
  6. * These will be re-linked against their real values
  7. * during the second link stage.
  8. */
  9. extern const unsigned long kallsyms_addresses[] __weak;
  10. extern const int kallsyms_offsets[] __weak;
  11. extern const u8 kallsyms_names[] __weak;
  12. /*
  13. * Tell the compiler that the count isn't in the small data section if the arch
  14. * has one (eg: FRV).
  15. */
  16. extern const unsigned int kallsyms_num_syms
  17. __section(".rodata") __attribute__((weak));
  18. extern const unsigned long kallsyms_relative_base
  19. __section(".rodata") __attribute__((weak));
  20. extern const char kallsyms_token_table[] __weak;
  21. extern const u16 kallsyms_token_index[] __weak;
  22. extern const unsigned int kallsyms_markers[] __weak;
  23. extern const u8 kallsyms_seqs_of_names[] __weak;
  24. #endif // LINUX_KALLSYMS_INTERNAL_H_