[Bug target/101115] ld.bfd: warning: .init_array section has zero size

2021-06-19 Thread judge.packham at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101115 --- Comment #3 from Chris Packham --- An update[1]. It seems that --disable-tm-clone-registry is the option that results in crtbegin.o having a zero sized .init_array. I can't really follow crcstuff.c but I see USE_TM_CLONE_REGISTRY in the

[Bug target/101115] ld.bfd: warning: .init_array section has zero size

2021-06-17 Thread judge.packham at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101115 --- Comment #2 from Chris Packham --- (In reply to Andrew Pinski from comment #1) > Try adding --enable-initfini-array to gcc config > > Most likely GCC config is not detecting .init_array/.fini_array support > which is now always turned on

[Bug target/101115] ld.bfd: warning: .init_array section has zero size

2021-06-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101115 --- Comment #1 from Andrew Pinski --- Try adding --enable-initfini-array to gcc config Most likely GCC config is not detecting .init_array/.fini_array support which is now always turned on the trunk for *linux-* targets.