From 2d78fa08c1f78beece31303ad82bc4ad377ab3c9 Mon Sep 17 00:00:00 2001 From: Paul Gardner-Stephen Date: Thu, 18 Apr 2019 20:51:34 +0930 Subject: [PATCH] mark unlocated routines with address -1 so that they come first in the sort order --- src/preprocess.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/preprocess.c b/src/preprocess.c index 077e2751..81bc0e8f 100644 --- a/src/preprocess.c +++ b/src/preprocess.c @@ -16,7 +16,7 @@ #define MAX_FILES (128*1024) typedef struct source_file { char *file; - u_int32_t address; + int address; } source_file; source_file source_files[MAX_FILES]; @@ -67,7 +67,7 @@ int main(int argc,char **argv) if (!strcmp(&de->d_name[strlen(de->d_name)-2],".s")) { if (source_count>=MAX_FILES) DO_ERROR("Too many source files. Increase MAX_FILES?"); source_files[source_count].file=strdup(de->d_name); - source_files[source_count].address=0x7fffffff; + source_files[source_count].address=-1; source_count++; } }