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
This commit is contained in:
Thomas Preud'homme
2010-03-30 09:45:31 +02:00
parent 6d4166df61
commit 47abdbd3d5
3 changed files with 136 additions and 3 deletions

2
tcc.h
View File

@ -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