sections.h 473 B

12345678910111213141516171819202122
  1. /*
  2. * decls for symbols defined in the linker script
  3. *
  4. * Copyright (c) 2012 The Chromium OS Authors.
  5. *
  6. * Licensed under the GPL-2 or later.
  7. */
  8. #ifndef __SANDBOX_SECTIONS_H
  9. #define __SANDBOX_SECTIONS_H
  10. struct sb_cmdline_option;
  11. extern struct sb_cmdline_option *__u_boot_sandbox_option_start[],
  12. *__u_boot_sandbox_option_end[];
  13. static inline size_t __u_boot_sandbox_option_count(void)
  14. {
  15. return __u_boot_sandbox_option_end - __u_boot_sandbox_option_start;
  16. }
  17. #endif