diff options
author | Christophe Lyon <christophe.lyon@foss.st.com> | 2021-08-17 12:59:26 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@foss.st.com> | 2021-08-17 12:59:26 +0000 |
commit | 9c560cf23996271ee26dfc4a1d8484b85173cd12 (patch) | |
tree | c7ea4c4025547d70e9fef74f9e0c1bce35388b71 /gcc | |
parent | 6bcbf80c6e2bd8a60d88bbcac3d70ffb67f4888f (diff) | |
download | gcc-9c560cf23996271ee26dfc4a1d8484b85173cd12.zip gcc-9c560cf23996271ee26dfc4a1d8484b85173cd12.tar.gz gcc-9c560cf23996271ee26dfc4a1d8484b85173cd12.tar.bz2 |
Do not enable DT_INIT_ARRAY/DT_FINI_ARRAY on uclinuxfdpiceabi
Commit r12-1328 enabled DT_INIT_ARRAY/DT_FINI_ARRAY for all Linux
targets, but this does not work for arm-none-uclinuxfdpiceabi: it
makes all the execution tests fail.
This patch restores the original behavior for uclinuxfdpiceabi.
2021-08-12 Christophe Lyon <christophe.lyon@foss.st.com>
gcc/
PR target/100896
* config.gcc (gcc_cv_initfini_array): Leave undefined for
uclinuxfdpiceabi targets.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config.gcc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 7001a79..d9bfbfd 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -851,8 +851,14 @@ case ${target} in tmake_file="${tmake_file} t-glibc" target_has_targetcm=yes target_has_targetdm=yes - # Linux targets always support .init_array. - gcc_cv_initfini_array=yes + case $target in + *-*-*uclibc* | *-*-uclinuxfdpiceabi) + ;; + *) + # Linux targets always support .init_array. + gcc_cv_initfini_array=yes + ;; + esac ;; *-*-netbsd*) tm_p_file="${tm_p_file} netbsd-protos.h" |