diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2018-09-18 07:04:15 +0000 |
---|---|---|
committer | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2018-09-18 07:04:15 +0000 |
commit | 12b511c1bbbf790aace93cd1e1525dc482614ec0 (patch) | |
tree | 7410a7bb6984cef1930df018183c75fc75a692b5 /libgcc/configure | |
parent | ae41d2564a00c7a485ea6b47a807c0bf535e2d92 (diff) |
Use v2 map syntax in libgcc-unwind.map if Solaris ld supports it
* configure.ac (solaris_ld_v2_maps): New test.
* configure: Regenerate.
* Makefile.in (solaris_ld_v2_maps): New variable.
* config/t-slibgcc-sld (libgcc-unwind.map): Emit v2 mapfile syntax
if supported.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@264382 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc/configure')
-rw-r--r-- | libgcc/configure | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libgcc/configure b/libgcc/configure index 090e5484131..f0b6116e192 100644 --- a/libgcc/configure +++ b/libgcc/configure @@ -570,6 +570,7 @@ sfp_machine_header set_use_emutls set_have_cc_tls vis_hide +solaris_ld_v2_maps real_host_noncanonical accel_dir_suffix force_explicit_eh_registry @@ -5176,6 +5177,26 @@ EOF ;; esac +# Check if Solaris linker support v2 linker mapfile syntax. +# Link with -nostartfiles -nodefaultlibs since neither are present while +# building libgcc. +case ${host} in +*-*-solaris2*) + solaris_ld_v2_maps=no + echo 'int main(void) {return 0;}' > conftest.c + echo '$mapfile_version 2' > conftest.map + if { ac_try='${CC-cc} -nostartfiles -nodefaultlibs -Wl,-M,conftest.map -o conftest conftest.c 1>&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + solaris_ld_v2_maps=yes + fi + ;; +esac + + # Check if xtensa target is configured for windowed ABI and thus needs to use # custom unwind code. # This is after config.host so we can augment tmake_file. |