Ticket #220: emxomf-remove-asterisk.diff
File emxomf-remove-asterisk.diff, 794 bytes (added by , 15 years ago) |
---|
-
emxomf.c
2699 2701 const char *pszExpName, size_t cchExpName, unsigned iOrdinal) 2700 2702 { 2701 2703 const struct nlist *pSym; 2702 char *pszSym = alloca(cchSymbol + 1); 2704 char *pszSym; 2705 2706 /* 2707 * GCC 4.4.2 prepends an asterisk to exported symbols having the _System 2708 * attribute, remove it 2709 */ 2710 if (*pszSymbol == '*') 2711 { 2712 ++pszSymbol; 2713 --cchSymbol; 2714 } 2715 if (*pszExpName == '*') 2716 { 2717 ++pszExpName; 2718 --cchExpName; 2719 } 2720 2721 pszSym = alloca(cchSymbol + 1); 2703 2722 memcpy(pszSym, pszSymbol, cchSymbol); 2704 2723 pszSym[cchSymbol] = '\0'; 2705 2724