Subversion Repositories Kolibri OS

Rev

Rev 9153 | Rev 9305 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9153 Rev 9284
Line 69... Line 69...
69
#include "tccpe.c"
69
#include "tccpe.c"
70
#endif
70
#endif
71
#ifdef TCC_TARGET_MEOS
71
#ifdef TCC_TARGET_MEOS
72
#include "tccmeos.c"
72
#include "tccmeos.c"
73
#endif
73
#endif
-
 
74
#ifdef TCC_TARGET_KX
-
 
75
#include "tcckx.c"
-
 
76
#endif
74
#ifdef TCC_TARGET_MEOS_LINUX
77
#ifdef TCC_TARGET_MEOS_LINUX
75
#include 
78
#include 
76
#endif
79
#endif
Line 1459... Line 1462...
1459
        ret = tcc_load_coff(s1, fd);
1462
        ret = tcc_load_coff(s1, fd);
1460
        goto the_end;
1463
        goto the_end;
1461
    }
1464
    }
1462
#endif
1465
#endif
Line 1463... Line 1466...
1463
 
1466
 
1464
#if defined(TCC_TARGET_PE) ||  defined(TCC_TARGET_MEOS)
1467
#if defined (TCC_TARGET_PE) ||  (defined(TCC_TARGET_MEOS)  && !defined(TCC_TARGET_KX))
-
 
1468
    ret = pe_load_file(s1, filename, fd);
-
 
1469
#elif defined(TCC_TARGET_KX)
1465
    ret = pe_load_file(s1, filename, fd);
1470
    ret = pe_load_def(s1, fd);
1466
#else
1471
#else
1467
    /* as GNU ld, consider it is an ld script if not recognized */
1472
    /* as GNU ld, consider it is an ld script if not recognized */
1468
    ret = tcc_load_ldscript(s1);
1473
    ret = tcc_load_ldscript(s1);
1469
#endif
1474
#endif
Line 2123... Line 2128...
2123
    { "E", TCC_OPTION_E, 0},
2128
    { "E", TCC_OPTION_E, 0},
2124
    { "MD", TCC_OPTION_MD, 0},
2129
    { "MD", TCC_OPTION_MD, 0},
2125
    { "MF", TCC_OPTION_MF, TCC_OPTION_HAS_ARG },
2130
    { "MF", TCC_OPTION_MF, TCC_OPTION_HAS_ARG },
2126
    { "x", TCC_OPTION_x, TCC_OPTION_HAS_ARG },
2131
    { "x", TCC_OPTION_x, TCC_OPTION_HAS_ARG },
2127
    { "stack", TCC_OPTION_stack, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP},
2132
    { "stack", TCC_OPTION_stack, TCC_OPTION_HAS_ARG | TCC_OPTION_NOSEP},
-
 
2133
#if defined(TCC_TARGET_MEOS) && !defined (TCC_TARGET_KX)
2128
    { "nobss", TCC_OPTION_nobss, 0 },
2134
    { "nobss", TCC_OPTION_nobss, 0 },
-
 
2135
#endif
2129
    { NULL, 0, 0 },
2136
    { NULL, 0, 0 },
2130
};
2137
};
Line 2131... Line 2138...
2131
 
2138
 
2132
static void parse_option_D(TCCState *s1, const char *optarg)
2139
static void parse_option_D(TCCState *s1, const char *optarg)
Line 2456... Line 2463...
2456
        case TCC_OPTION_stack:
2463
        case TCC_OPTION_stack:
2457
#ifdef TCC_TARGET_MEOS
2464
#ifdef TCC_TARGET_MEOS
2458
            s->pe_stack_size = strtoul(optarg+1, NULL, 10);
2465
            s->pe_stack_size = strtoul(optarg+1, NULL, 10);
2459
#endif
2466
#endif
2460
            break;
2467
            break;
-
 
2468
#if defined(TCC_TARGET_MEOS) && !defined (TCC_TARGET_KX)
2461
        case TCC_OPTION_nobss:
2469
        case TCC_OPTION_nobss:
2462
            s->nobss = 1;
2470
            s->nobss = 1;
2463
            break;
2471
            break;
-
 
2472
#endif
2464
        default:
2473
        default:
2465
            if (s->warn_unsupported) {
2474
            if (s->warn_unsupported) {
2466
            unsupported_option:
2475
            unsupported_option:
2467
                tcc_warning("unsupported option '%s'", r);
2476
                tcc_warning("unsupported option '%s'", r);
2468
            }
2477
            }