/* Name of the target specific runtime library */
static char* TargetLib = 0;
+static int NoRTL = 0;
const char* TargetName = GetTargetName (Target);
unsigned TargetNameLen = strlen (TargetName);
+ if (NoRTL)
+ {
+ /* Default RunTime Library is disabled */
+ return;
+ }
+
/* Set the library file */
TargetLib = xmalloc (TargetNameLen + 4 + 1);
memcpy (TargetLib, TargetName, TargetNameLen);
" --memory-model model\t\tSet the memory model\n"
" --module\t\t\tLink as a module\n"
" --module-id id\t\tSpecify a module ID for the linker\n"
+ " --no-rtl\t\t\tDon't link default runtime library\n"
" --o65-model model\t\tOverride the o65 model\n"
" --obj file\t\t\tLink this object file\n"
" --obj-path path\t\tSpecify an object file search path\n"
+static void OptNoRTL (const char* Opt attribute ((unused)),
+ const char* Arg attribute ((unused)))
+/* Disable default runtime library */
+{
+ NoRTL = 1;
+}
+
+
+
static void OptO65Model (const char* Opt attribute ((unused)), const char* Arg)
/* Handle the --o65-model option */
{
{ "--memory-model", 1, OptMemoryModel },
{ "--module", 0, OptModule },
{ "--module-id", 1, OptModuleId },
+ { "--no-rtl", 0, OptNoRTL },
{ "--o65-model", 1, OptO65Model },
{ "--obj", 1, OptObj },
{ "--obj-path", 1, OptObjPath },