summaryrefslogtreecommitdiffstats
path: root/pre-crt0.c
diff options
context:
space:
mode:
Diffstat (limited to 'pre-crt0.c')
-rw-r--r--pre-crt0.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/pre-crt0.c b/pre-crt0.c
new file mode 100644
index 0000000..67fd31c
--- /dev/null
+++ b/pre-crt0.c
@@ -0,0 +1,9 @@
+/* This file is loaded before crt0.o on machines where we do not
+ remap part of the data space into text space in unexec.
+ On these machines, there is no problem with standard crt0.o's
+ that make environ an initialized variable. However, we do
+ need to make sure the label data_start exists anyway. */
+
+/* Create a label to appear at the beginning of data space. */
+
+int data_start = 0;