egcs-1.1 doesnt handle weak symbols on SCO V5.0.4 / ELF

Eric Dumazet dumazet@cosmosbay.com
Thu Sep 10 17:58:00 GMT 1998


Hello Robert and Jeffrey

I successfully build egcs-1.1 --with-gnu-as --with-gnu-ld on
SCO V5.0.4.

I have one litle problem : weak symbols are silently ignored :

#pragma weak isread = _isread
int _isread(int fd, char *buffer, int mode)
{
...
}

The SCO Compiler handles this kind of construct quite well.
I also have gcc-2.7.2 on this platform and it is OK.

I tried some changes in gcc/config/i386/sco5.h

#define SUPPORTS_WEAK   TARGET_ELF                           
#define ASM_WEAKEN_LABEL(FILE,NAME) \
  do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME);
\                    fputc ('\n', FILE); } while (0)

But I don't have any results. I must be very stupid at this moment.

Could you help me ?

Thanks

Eric Dumazet



More information about the Gcc mailing list