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 /libtcc.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 'libtcc.c')
| -rw-r--r-- | libtcc.c | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -1419,11 +1419,9 @@ ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags, ret = tcc_load_ldscript(s1); #endif if (ret < 0) - tcc_error_noabort("%s: unrecognized file type (error=%d)", filename, ret); + tcc_error_noabort("unrecognized file type"); the_end: - if (s1->verbose) - printf("+> %s\n", filename); tcc_close(); return ret; } @@ -2321,16 +2319,6 @@ ST_FUNC int tcc_parse_args1(TCCState *s, int argc, char **argv) s->rdynamic = 1; break; case TCC_OPTION_Wl: - if (optarg && *optarg == '-') { - int offs = 0; - if (!strncmp("-no", optarg+1, 3)) - offs += 3; - if (!strcmp("-whole-archive", optarg+1 + offs)) { - args_parser_add_file(s, "", (offs == 0) ? TCC_FILETYPE_AR_WHOLE_ON : - TCC_FILETYPE_AR_WHOLE_OFF); - break; - } - } if (pas->linker_arg.size) --pas->linker_arg.size, cstr_ccat(&pas->linker_arg, ','); cstr_cat(&pas->linker_arg, optarg, 0); |
