1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * decls for symbols defined in the linker script 3*4882a593Smuzhiyun * 4*4882a593Smuzhiyun * Copyright (c) 2012 The Chromium OS Authors. 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * Licensed under the GPL-2 or later. 7*4882a593Smuzhiyun */ 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun #ifndef __SANDBOX_SECTIONS_H 10*4882a593Smuzhiyun #define __SANDBOX_SECTIONS_H 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun #include <asm-generic/sections.h> 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun struct sandbox_cmdline_option; 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun extern struct sandbox_cmdline_option *__u_boot_sandbox_option_start[], 17*4882a593Smuzhiyun *__u_boot_sandbox_option_end[]; 18*4882a593Smuzhiyun __u_boot_sandbox_option_count(void)19*4882a593Smuzhiyunstatic inline size_t __u_boot_sandbox_option_count(void) 20*4882a593Smuzhiyun { 21*4882a593Smuzhiyun return __u_boot_sandbox_option_end - __u_boot_sandbox_option_start; 22*4882a593Smuzhiyun } 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun #endif 25