differences in generated ldscripts for native and cross builds
Joseph Myers
joseph@codesourcery.com
Mon Oct 12 17:04:00 GMT 2015
On Sun, 11 Oct 2015, H.J. Lu wrote:
> >> Try adding --enable-initfini-array to the cross configuration. The
> >> autoconf test for this option uses AC_RUN_IFELSE so only works on
> >> native builds.
> >
> > can't we make this smarter ? this feature has been around for quite
> > a long time now. seems crazy that the default is to disable these
> > when cross-compiling.
>
> Yes, the default should be ON for Linux targets.
Thomas, I think you had plans to work on that at some point....
As I said in <https://gcc.gnu.org/ml/gcc-patches/2013-11/msg00619.html> I
think it should be on by default for ELF targets, not limited to GNU/Linux
or GNU targets.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Binutils
mailing list