diff options
| author | grischka <grischka> | 2016-10-01 19:56:25 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2016-10-01 19:56:25 +0200 |
| commit | cf32bb8812583583f526ee0faf8c8f7d7799210c (patch) | |
| tree | 6b59a099ec983a1ed807096fd371b45457b62af6 /tccelf.c | |
| parent | e238e6521bcbbc3a4ff6d795564b8f2d322de349 (diff) | |
| download | tinycc-cf32bb8812583583f526ee0faf8c8f7d7799210c.tar.gz tinycc-cf32bb8812583583f526ee0faf8c8f7d7799210c.tar.bz2 | |
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 19a169ceb896f78205bc23b847938c58f14d1dda.
Diffstat (limited to 'tccelf.c')
| -rw-r--r-- | tccelf.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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); |
