view src/pre-crt0.c @ 45235:66271fa0bf60

(current_minor_maps): Fixed resizing of cmm_maps; only update cmm_size if realloc actually succeeds. Testing with initial size of 2 elements revealed that using realloc on GNU/Linux would cause a random trap in xmalloc later on, so I rewrote the code to use malloc/bcopy/free instead of realloc.
author Kim F. Storm <storm@cua.dk>
date Fri, 10 May 2002 23:57:14 +0000
parents 3165b2697c78
children 695cf19ef79e
line wrap: on
line source

/* 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;