source: spec/trunk/SPECS/libc/libc-dmik-emxomf-02-remove-asterisk.diff@ 1330

Last change on this file since 1330 was 1092, checked in by dmik, 8 years ago

spec: libc: Release version 0.6.6-32.

File size: 793 bytes
  • emxomf.c

     
    27262726                        const char *pszExpName, size_t cchExpName, unsigned iOrdinal)
    27272727{
    27282728    const struct nlist *pSym;
    2729     char *pszSym = alloca(cchSymbol + 1);
     2729    char *pszSym;
     2730
     2731    /*
     2732     * GCC 4.4.2 prepends an asterisk to exported symbols having the _System
     2733     * attribute, remove it
     2734     */
     2735    if (*pszSymbol == '*')
     2736    {
     2737        ++pszSymbol;
     2738        --cchSymbol;
     2739    }
     2740    if (*pszExpName == '*')
     2741    {
     2742        ++pszExpName;
     2743        --cchExpName;
     2744    }
     2745
     2746    pszSym = alloca(cchSymbol + 1);
    27302747    memcpy(pszSym, pszSymbol, cchSymbol);
    27312748    pszSym[cchSymbol] = '\0';
    27322749
Note: See TracBrowser for help on using the repository browser.