[Bug target/28715] Attribute with section (".init_array") does't work under SPARC

pastoor dot external at onespin-solutions dot com gcc-bugzilla@gcc.gnu.org
Mon Aug 14 13:51:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list