aboutsummaryrefslogtreecommitdiff
path: root/tccelf.c
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-04-10 15:17:22 +0300
committerseyko <seyko2@gmail.com>2015-04-10 15:17:22 +0300
commit559675b90acec03b67ed3f2cece1940f00e44c49 (patch)
tree3875745ba543b7b8bb8474d9b7910272fcf75b9d /tccelf.c
parente92dc595cd10405b3ed14b2663affeb50b47e169 (diff)
downloadtinycc-559675b90acec03b67ed3f2cece1940f00e44c49.tar.gz
tinycc-559675b90acec03b67ed3f2cece1940f00e44c49.tar.bz2
a bounds checking code for the ARCH=x86_64
Diffstat (limited to 'tccelf.c')
-rw-r--r--tccelf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tccelf.c b/tccelf.c
index ac91456..98815e5 100644
--- a/tccelf.c
+++ b/tccelf.c
@@ -1579,7 +1579,6 @@ ST_FUNC void tcc_add_bcheck(TCCState *s1)
add_elf_sym(symtab_section, 0, 0,
ELFW(ST_INFO)(STB_GLOBAL, STT_NOTYPE), 0,
bounds_section->sh_num, "__bounds_start");
-#ifdef TCC_TARGET_I386
if (s1->output_type != TCC_OUTPUT_MEMORY) {
/* add 'call __bound_init()' in .init section */
@@ -1601,7 +1600,6 @@ ST_FUNC void tcc_add_bcheck(TCCState *s1)
tcc_warning("__bound_init not defined");
}
#endif
-#endif
}
/* add tcc runtime libraries */