diff options
Diffstat (limited to 'tccelf.c')
| -rw-r--r-- | tccelf.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -3275,6 +3275,11 @@ static int ld_next(TCCState *s1, char *name, int name_size) goto parse_name; } break; + case '\\': + ch = handle_eob(); + if (ch != '\\') + goto redo; + /* fall through */ /* case 'a' ... 'z': */ case 'a': case 'b': @@ -3330,7 +3335,6 @@ static int ld_next(TCCState *s1, char *name, int name_size) case 'Y': case 'Z': case '_': - case '\\': case '.': case '$': case '~': @@ -3462,7 +3466,6 @@ ST_FUNC int tcc_load_ldscript(TCCState *s1) char filename[1024]; int t, ret; - ch = file->buf_ptr[0]; ch = handle_eob(); for(;;) { t = ld_next(s1, cmd, sizeof(cmd)); |
