Revert "--whole-archive support"
- would parse linker args in two different places
- would mess up "tcc -v ..." output:
tcc -v test.c
-> test.c
+> test.c
- would use function "tcc_load_alacarte()" to do the contrary of
what its name suggests.
This reverts commit 19a169ceb8.
This commit is contained in:
3
tccelf.c
3
tccelf.c
@ -3076,7 +3076,6 @@ static int tcc_load_alacarte(TCCState *s1, int fd, int size)
|
||||
if(sym_index) {
|
||||
sym = &((ElfW(Sym) *)symtab_section->data)[sym_index];
|
||||
if(sym->st_shndx == SHN_UNDEF) {
|
||||
load_obj:
|
||||
off = get_be32(ar_index + i * 4) + sizeof(ArchiveHeader);
|
||||
++bound;
|
||||
lseek(fd, off, SEEK_SET);
|
||||
@ -3086,8 +3085,6 @@ static int tcc_load_alacarte(TCCState *s1, int fd, int size)
|
||||
goto the_end;
|
||||
}
|
||||
}
|
||||
} else if (s1->whole_archive) {
|
||||
goto load_obj;
|
||||
}
|
||||
}
|
||||
} while(bound);
|
||||
|
||||
Reference in New Issue
Block a user