This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: elision-conf.c "__pthread_init_array causes a section type conflict"


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


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