------- Comment #2 from pastoor dot external at onespin-solutions dot com 2006-08-14 13:51 ------- Okay, but when i execute the ELF under SPARC the init_array entries aren't executed. Loaders don't look in the sectionheadertable because all information they need are in the programmheadertable. I think the init_array isn't handled in the right way in the segments (for SPARC) and thats because it is specified as SHT_PROGBIT in the sectionheadertable, because PROGBITS aren't executed before the main-routine.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28715