From 9c5bb16447e3d6cf5493c4802f3e3a1939430a27 Mon Sep 17 00:00:00 2001 From: grischka Date: Sat, 1 Oct 2016 20:47:36 +0200 Subject: Revert part of "fix installation amd bcheck for Windows" tccelf.c : force linking bcheck by adding elf symbol __bound_init bcheck.c : use (size_t)1 for x86_64 Fixes 7e7e6148fdb4adbda936f80b5d4ac3d738908d95 --- libtcc.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'libtcc.c') diff --git a/libtcc.c b/libtcc.c index c092a04..71e8c2f 100644 --- a/libtcc.c +++ b/libtcc.c @@ -1673,16 +1673,6 @@ LIBTCCAPI int tcc_set_output_type(TCCState *s, int output_type) tcc_add_crt(s, "crt1.o"); tcc_add_crt(s, "crti.o"); } -#endif -#ifdef CONFIG_TCC_BCHECK - if (s->do_bounds_check && (output_type == TCC_OUTPUT_EXE)) - { - /* force a bcheck.o linking */ - addr_t func = TOK___bound_init; - Sym *sym = external_global_sym(func, &func_old_type, 0); - if (!sym->c) - put_extern_sym(sym, NULL, 0, 0); - } #endif if (s->normalize_inc_dirs) tcc_normalize_inc_dirs(s); -- cgit v1.3.1