On Tue, 2012-10-30 at 19:55 +0100, Jakub Jelinek wrote: > On Tue, Oct 30, 2012 at 01:43:33PM -0500, Peter Bergner wrote: > > Commenting on Richard's question from the bugzilla: > > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53708#c10 > > > > I suppose if attribute((__aligned__)) truly does just set a minimum > > alignment > > value (and the documentation seems to say that) and the compiler is free to > > arbitrarily increase it, then the GLIBC code to scan the init_array needs to > > be tolerant of null values in init_array. > > > > Does everyone agree with that assessment? > > I think the right test is for user supplied section name, > this approach is so common that I think we have to support it. > E.g. Linux kernel, glibc, prelink all use this, gcc itself too (e.g. > crtstuff.c).
Ok, then I'll bootstrap and regtest your suggested change while we wait for richi to comment. I'm fine with whatever you and richi decide is best. The ObjC guys should probably test it though too. I assume you think we should change the current trunk code as well? Peter