Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / native_client / tests / pnacl_dynamic_loading / test_pso.c
index ad4d5c1..62fedfe 100644 (file)
@@ -4,8 +4,14 @@
  * found in the LICENSE file.
  */
 
+#include "native_client/tests/pnacl_dynamic_loading/test_pso.h"
+
+
 static int var = 2345;
 
+/* Zero-initialized variables go in the BSS.  Test a large BSS. */
+static char bss_var[BSS_VAR_SIZE];
+
 static int example_func(int *ptr) {
   return *ptr + 1234;
 }
@@ -15,12 +21,8 @@ static int *get_var(void) {
   return &var;
 }
 
-struct pso_root {
-  int (*example_func)(int *ptr);
-  int *(*get_var)(void);
-};
-
-struct pso_root __pnacl_pso_root = {
+struct test_pso_root __pnacl_pso_root = {
   example_func,
   get_var,
+  bss_var,
 };