Partially backport the MAYBE_STATIC macro from upstream

This patch partially backports the macro of MAYBE_STATIC from the
upstream for the next patch of ACPI table fixing.

Suggested by Wei-Shun, commit message by Harry.

BUG=chromium:611896
BRANCH=firmware-ninja-5216.383.B
TEST=rebuild firmware, image it to BYT chrome device,
do 'cat /proc/iomem' and examine System RAM in root's sibling.

Change-Id: I6735f2090fbee2a88733ccc0b7b06cd785ac5249
Signed-off-by: Harry Pan <harry.pan@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/372403
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/506290
diff --git a/src/include/stddef.h b/src/include/stddef.h
index 137de04..1219bc6 100644
--- a/src/include/stddef.h
+++ b/src/include/stddef.h
@@ -38,4 +38,12 @@
 #define ROMSTAGE_CONST
 #endif
 
+/* Work around non-writable data segment in execute-in-place romstage on x86. */
+#if defined(__PRE_RAM__) && CONFIG_ARCH_X86
+#define MAYBE_STATIC
+#else
+#define MAYBE_STATIC static
+#endif
+
+
 #endif /* STDDEF_H */