This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: elision-conf.c "__pthread_init_array causes a section type conflict"
- From: Dominik Vogt <vogt at linux dot vnet dot ibm dot com>
- To: libc-alpha at sourceware dot org
- Date: Wed, 24 Jul 2013 15:30:13 +0200
- Subject: Re: elision-conf.c "__pthread_init_array causes a section type conflict"
- References: <20130722130138 dot GA12945 at linux dot vnet dot ibm dot com> <20130722215905 dot DD2FC2C06F at topped-with-meat dot com> <20130723134140 dot GA20951 at linux dot vnet dot ibm dot com> <20130723173026 dot B1E132C07E at topped-with-meat dot com>
- Reply-to: libc-alpha at sourceware dot org
On Tue, Jul 23, 2013 at 10:30:26AM -0700, Roland McGrath wrote:
> > However I'm not sure where you wanted me to put attribute_relro;
> > should it _replace_ the section attribute?
>
> No. Just add it next to the other attributes.
void (*const __pthread_init_array []) (int, char **, char **)
attribute_relro
__attribute__ ((section (INIT_SECTION), aligned (sizeof (void *)))) =
{
&elision_init
};
==>
In file included from ../nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c:29:0:
../nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c:78:14: error: section of â__pthread_init_arrayâ conflicts with previous declaration
void (*const __pthread_init_array []) (int, char **, char **)
^
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
IBM Germany