fix: try to add a bounds.o only if __bounds_init not found
commitf2cfc07554c698dcd2f12dab223aece4d40198c2
authorseyko <seyko2@gmail.com>
Sat, 28 Mar 2015 16:41:01 +0000 (28 19:41 +0300)
committerseyko <seyko2@gmail.com>
Sat, 28 Mar 2015 16:41:01 +0000 (28 19:41 +0300)
tree5c82cbbab7f478b43b2b051ed5415966b0b464a6
parent3b7f5008fdacf3c4b9e7329b64ab75741dcf5370
fix: try to add a bounds.o only if __bounds_init not found

    /usr/local/lib/tcc/i386/bcheck.o: error: '__bound_error_msg' defined twice
    #include <stdio.h>
    int main ()
    {
        #if 1
         int v[10];
            v[10] = 0;
            fprintf(stderr, "is bounds error catched?\n");
        #endif
        return 0;
    }
    // tcc -b test.c
tccelf.c