This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "causes a section type conflict" ?


On Thu, Oct 11, 2001 at 01:38:02PM +0200, paul.stoeber@in.stud.tu-ilmenau.de wrote:
> static const int a __attribute__ ((__section__ (".data.init"))) = 1;
> static int b __attribute__ ((__section__ (".data.init"))) = 1;
[...]
> bug_p.c:2: b causes a section type conflict
> $
> 
> gcc 2.95.2 doesn't complain.  Affects linux build.
> Is that supposed to happen?

Yes.  2.95 silently creates a read-only section when this
is not desired.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]