* [PATCH v2] gcc-configure: Enable initfini-array
@ 2016-09-19 17:16 Saul Wold
2016-09-20 20:55 ` Khem Raj
0 siblings, 1 reply; 2+ messages in thread
From: Saul Wold @ 2016-09-19 17:16 UTC (permalink / raw)
To: openembedded-core, richard.purdie; +Cc: Haitao Huang
This adds the correct support for initfini-array which replaces .init
and .fini with .init-array and .fini-array. There is no appreciable
size difference with this change.
The change is needed since configure will not correctly detect support
when building cross-compilers.
Signed-off-by: Haitao Huang <haitao.huang@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
v2: Enable for all Architectures
meta/recipes-devtools/gcc/gcc-configure-common.inc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc
index f4f76bd..b374c30 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
@@ -44,6 +44,10 @@ EXTRA_OECONF = "\
${@get_gcc_multiarch_setting(bb, d)} \
"
+# Set this here since GCC configure won't auto-detect and enable
+# initfini-arry when cross compiling.
+EXTRA_OECONF_append = " --enable-initfini-array"
+
export gcc_cv_collect2_libs = 'none required'
# We need to set gcc_cv_collect2_libs else there is cross-compilation badness
# in the config.log files (which might not get generated until do_compile
--
2.5.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] gcc-configure: Enable initfini-array
2016-09-19 17:16 [PATCH v2] gcc-configure: Enable initfini-array Saul Wold
@ 2016-09-20 20:55 ` Khem Raj
0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2016-09-20 20:55 UTC (permalink / raw)
To: Saul Wold; +Cc: Haitao Huang, Patches and discussions about the oe-core layer
On Mon, Sep 19, 2016 at 10:16 AM, Saul Wold <sgw@linux.intel.com> wrote:
> This adds the correct support for initfini-array which replaces .init
> and .fini with .init-array and .fini-array. There is no appreciable
> size difference with this change.
>
> The change is needed since configure will not correctly detect support
> when building cross-compilers.
>
> Signed-off-by: Haitao Huang <haitao.huang@intel.com>
> Signed-off-by: Saul Wold <sgw@linux.intel.com>
> ---
> v2: Enable for all Architectures
What is original motivation for this patch ? this change expects libc
to support init fini arrays
please test it on all supported libcs as well.
>
> meta/recipes-devtools/gcc/gcc-configure-common.inc | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/meta/recipes-devtools/gcc/gcc-configure-common.inc b/meta/recipes-devtools/gcc/gcc-configure-common.inc
> index f4f76bd..b374c30 100644
> --- a/meta/recipes-devtools/gcc/gcc-configure-common.inc
> +++ b/meta/recipes-devtools/gcc/gcc-configure-common.inc
> @@ -44,6 +44,10 @@ EXTRA_OECONF = "\
> ${@get_gcc_multiarch_setting(bb, d)} \
> "
>
> +# Set this here since GCC configure won't auto-detect and enable
> +# initfini-arry when cross compiling.
> +EXTRA_OECONF_append = " --enable-initfini-array"
> +
> export gcc_cv_collect2_libs = 'none required'
> # We need to set gcc_cv_collect2_libs else there is cross-compilation badness
> # in the config.log files (which might not get generated until do_compile
> --
> 2.5.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-20 20:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-19 17:16 [PATCH v2] gcc-configure: Enable initfini-array Saul Wold
2016-09-20 20:55 ` Khem Raj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.