This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: [patch] ld/Error reporting when commons are different sizes.
- To: ian at zembu dot com (Ian Lance Taylor)
- Subject: Re: [patch] ld/Error reporting when commons are different sizes.
- From: "Philippe De Muyter" <phdm at macqel dot be>
- Date: Fri, 3 Mar 100 13:50:25 +0100 (CET)
- Cc: clm at cygnus dot com, binutils at sourceware dot cygnus dot com
Ian Lance Taylor wrote :
> If I read this correctly, this patch changes the linker to by default
> give an error if two common symbols have a different size. That is
> not acceptable. Common symbols routinely have different sizes when
> linking Fortran programs.
>
I am probably late on this, but Ian is right : with pcc-based compilers,
functions returning struct's use a common zone (called __StRet on sysV68),
that, of course, as different sizes depending of the size of the returned
struct. Yes, I know, those functions are not reentrant, but many useful
programs do not care about that.
Philippe