Rev 9615 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9615 | Rev 9782 | ||
---|---|---|---|
Line 658... | Line 658... | ||
658 | else if (section == SECTION_ABS) |
658 | else if (section == SECTION_ABS) |
659 | sh_num = SHN_ABS; |
659 | sh_num = SHN_ABS; |
660 | else |
660 | else |
661 | sh_num = section->sh_num; |
661 | sh_num = section->sh_num; |
Line 662... | Line 662... | ||
662 | 662 | ||
- | 663 | if (((sym->type.t & VT_BTYPE) == VT_FUNC |
|
- | 664 | #ifdef TCC_TARGET_KX |
|
- | 665 | ) && ((vtop->type.t & VT_IMPORT) == 0 |
|
- | 666 | #endif |
|
663 | if ((sym->type.t & VT_BTYPE) == VT_FUNC) { |
667 | )) { |
664 | sym_type = STT_FUNC; |
668 | sym_type = STT_FUNC; |
665 | } else if ((sym->type.t & VT_BTYPE) == VT_VOID) { |
669 | } else if ((sym->type.t & VT_BTYPE) == VT_VOID) { |
666 | sym_type = STT_NOTYPE; |
670 | sym_type = STT_NOTYPE; |
667 | } else { |
671 | } else { |
Line 857... | Line 861... | ||
857 | } |
861 | } |
Line 858... | Line 862... | ||
858 | 862 | ||
859 | PUB_FUNC void tcc_error(const char *fmt, ...) |
863 | PUB_FUNC void tcc_error(const char *fmt, ...) |
860 | { |
864 | { |
- | 865 | TCCState *s1 = tcc_state; |
|
- | 866 | // { Edit by Coldy |
|
861 | TCCState *s1 = tcc_state; |
867 | if (fmt) { |
Line 862... | Line 868... | ||
862 | va_list ap; |
868 | va_list ap; |
863 | 869 | ||
864 | va_start(ap, fmt); |
870 | va_start(ap, fmt); |
- | 871 | error1(s1, 0, fmt, ap); |
|
865 | error1(s1, 0, fmt, ap); |
872 | va_end(ap); |
866 | va_end(ap); |
873 | } // } |
867 | /* better than nothing: in some cases, we accept to handle errors */ |
874 | /* better than nothing: in some cases, we accept to handle errors */ |
868 | if (s1->error_set_jmp_enabled) { |
875 | if (s1->error_set_jmp_enabled) { |
869 | longjmp(s1->error_jmp_buf, 1); |
876 | longjmp(s1->error_jmp_buf, 1); |