This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: "causes a section type conflict" ?
- To: paul dot stoeber at in dot stud dot tu-ilmenau dot de
- Subject: Re: "causes a section type conflict" ?
- From: Richard Henderson <rth at redhat dot com>
- Date: Thu, 11 Oct 2001 09:35:40 -0700
- Cc: gcc at gcc dot gnu dot org
- References: <200110111138.NAA50034@bruegel.rz.tu-ilmenau.de>
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~