aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@celest.fr>2010-03-30 09:45:31 +0200
committerThomas Preud'homme <thomas.preudhomme@celest.fr>2010-04-15 19:30:00 +0200
commit47abdbd3d52a0bf92e907c3e059b5136c140fec2 (patch)
tree5de1473730460b2165455752ddeeadf1432247f0 /tcc.h
parent6d4166df61adf7513593d91bed12b7a9823d104d (diff)
downloadtinycc-47abdbd3d52a0bf92e907c3e059b5136c140fec2.tar.gz
tinycc-47abdbd3d52a0bf92e907c3e059b5136c140fec2.tar.bz2
Better handle ld scripts
* search file from INPUT and GROUP commands in the library path in addition to the current directory * handle libraries specified by -lfoo options * Search lib in GROUP command repeatedly
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcc.h b/tcc.h
index a7b6aa6..b59f61a 100644
--- a/tcc.h
+++ b/tcc.h
@@ -225,6 +225,8 @@ typedef struct Sym {
struct Sym *prev_tok; /* previous symbol for this token */
} Sym;
+static int new_undef_sym = 0; /* Is there a new undefined sym since last new_undef_sym() */
+
/* section definition */
/* XXX: use directly ELF structure for parameters ? */
/* special flag to indicate that the section should not be linked to