summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/lineedit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 4d33834..07db635 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -121,6 +121,8 @@ struct statics {
#endif
};
+/* Make it reside in writable memory, yet make compiler understand
+ * that it is not going to change. */
static struct statics *const ptr_to_statics __attribute__ ((section (".data")));
#define S (*ptr_to_statics)