aboutsummaryrefslogtreecommitdiff
path: root/tccelf.c
diff options
context:
space:
mode:
authorgrischka <grischka>2013-02-12 19:13:28 +0100
committergrischka <grischka>2013-02-12 19:13:28 +0100
commit05108a3b0a8eff70739b253b8995999b1861f9f2 (patch)
tree690c17ebe3cd0479e278bc3b65e00eba7ec674fd /tccelf.c
parent829655949b7964c66e1f7da9d44c19655dba88aa (diff)
downloadtinycc-05108a3b0a8eff70739b253b8995999b1861f9f2.tar.gz
tinycc-05108a3b0a8eff70739b253b8995999b1861f9f2.tar.bz2
libtcc: new LIBTCCAPI tcc_set_options(TCCState*, const char*str)
This replaces -> use instead: ----------------------------------- - tcc_set_linker -> tcc_set_options(s, "-Wl,..."); - tcc_set_warning -> tcc_set_options(s, "-W..."); - tcc_enable_debug -> tcc_set_options(s, "-g"); parse_args is moved to libtcc.c (now tcc_parse_args). Also some cleanups: - reorder TCCState members - add some comments here and there - do not use argv's directly, make string copies - use const char* in tcc_set_linker - tccpe: use fd instead of fp tested with -D MEM_DEBUG: 0 bytes left
Diffstat (limited to 'tccelf.c')
-rw-r--r--tccelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccelf.c b/tccelf.c
index 41bd1a5..500ea18 100644
--- a/tccelf.c
+++ b/tccelf.c
@@ -240,7 +240,7 @@ ST_FUNC int add_elf_sym(Section *s, addr_t value, unsigned long size,
} else if (s == tcc_state->dynsymtab_section) {
/* we accept that two DLL define the same symbol */
} else {
-#if 1
+#if 0
printf("new_bind=%x new_shndx=%x new_vis=%x old_bind=%x old_shndx=%x old_vis=%x\n",
sym_bind, sh_num, new_vis, esym_bind, esym->st_shndx, esym_vis);
#endif