static char rcsid[] = "$Id$";
#endif
-#include <stdlib.h>
#include <stdio.h>
+#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include "arch.h"
static char rcsid[] = "$Id$";
#endif
-#include <stdarg.h>
-#include <stdlib.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <stdbool.h>
+#include <stdarg.h>
#include <out.h>
#include "const.h"
static void
diag(char *tail, char *format, va_list ap)
{
- extern char *progname, *archname, *modulname;
+ extern char *progname, *archname, *modulname;
fprintf(stderr, "%s: ", progname);
if (archname && modulname)
static char rcsid[] = "$Id$";
#endif
-#include <stdlib.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <stdbool.h>
#include "out.h"
#include "const.h"
#include "debug.h"
static char rcsid[] = "$Id$";
#endif
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <stdbool.h>
#include <out.h>
#include "const.h"
#include "defs.h"
*/
#include <stdio.h>
+#include <stdlib.h>
#include <stdint.h>
+#include <stdbool.h>
#include <out.h>
#include "const.h"
#include "debug.h"
case 'c':
/*
* Leave relocation information in the output, so that
- * a next pass can see where relocation was done. The
+ * a next pass can see where relocation was done. The
* resulting output however is no longer relocatable.
*/
flagword &= ~RFLAG;
*/
#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <stdbool.h>
#include <out.h>
#include "const.h"
#include "assert.h"
incore = FALSE; /* In core strategy failed. */
if (sbreak(AT_LEAST) == -1)
fatal("no core at all");
-
+
base = BASE;
for (mem = mems; mem < &mems[NMEMS]; mem++) {
mem->mem_base = base;
gain = (mem->mem_full + incr) >> SHIFT_COUNT;
if (incr < gain) incr = gain;
}
-
+
/*
* First, check that moving will result in enough space
*/
if (flag != FREEZE) {
gain = mem->mem_left;
for (mem = &mems[piece-1]; mem >= &mems[0]; mem--) {
- /*
- * Don't give it all away!
+ /*
+ * Don't give it all away!
* If this does not give us enough, bad luck
*/
if (flag == FORCED)
}
if (min == piece)
for (mem = &mems[piece+1]; mem <= &mems[NMEMS - 1]; mem++) {
- /*
- * Don't give it all away!
+ /*
+ * Don't give it all away!
* If this does not give us enough, bad luck
*/
if (flag == FORCED)
static char rcsid[] = "$Id$";
#endif
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <stdbool.h>
#include <out.h>
#include "const.h"
#include "memory.h"
extern struct outsect outsect[];
extern char *core_alloc();
- size = (long)outhead.oh_nsect * sizeof(struct outname);
+ size = (long)outhead.oh_nsect * sizeof(struct outname);
name = (struct outname *)core_alloc(ALLOGLOB, size);
if (name == (struct outname *)0)
return;
static char rcsid[] = "$Id$";
#endif
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <stdbool.h>
+
int infile; /* The current input file. */
rd_fatal()
* If everything is kept in core, we must save some things for the second pass.
*/
-#include <stdlib.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <stdbool.h>
#include <string.h>
#include "arch.h"
#include "out.h"
static char rcsid[] = "$Id$";
#endif
-#include <stdlib.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <stdbool.h>
#ifdef SYMDBUG
#include <sys/types.h>
#include <sys/stat.h>
* Symbol table management.
*/
-#include <stdlib.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <stdbool.h>
#include "out.h"
#include "const.h"
#include "memory.h"
* in the hash table is followed. If the names match, a pointer to the outname
* in this element of the list is returned. When a match cannot be found,
* NIL is returned.
- */
+ */
struct outname *
searchname(string, hashval)
char *string;
debug("found %x, %x, %lx\n",
name->on_type, name->on_desc, name->on_valu, 0);
return name;
- }
+ }
symindex = sym->sy_next;
}
/* Not found. */
static char rcsid[] = "$Id$";
#endif
-#include <stdlib.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <stdbool.h>
#include <string.h>
#include "out.h"
#include "const.h"
for (sectindex = 0; sectindex < outhead.oh_nsect; sectindex++)
wrt_name(sectname(sectindex), 1);
}
-
+
wrt_emit(emit, sectindex, cnt)
char *emit;
int sectindex;