diff options
author | Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | 2008-11-20 17:13:01 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2008-11-20 17:13:01 +0000 |
commit | 19523300a00967225f9d377b241c8442aa261792 (patch) | |
tree | 05532f9b36c19db3ba4c3c2a298e1d0c80348696 /libgcc/configure.ac | |
parent | 7391b59739f9c1dc026643d78f16ea6b0e0b3f7a (diff) | |
download | gcc-19523300a00967225f9d377b241c8442aa261792.zip gcc-19523300a00967225f9d377b241c8442aa261792.tar.gz gcc-19523300a00967225f9d377b241c8442aa261792.tar.bz2 |
re PR bootstrap/33100 (on bootstrap getting section .eh_frame: bad cie version 0: offset 0x0)
gcc:
PR bootstrap/33100
* config.gcc (i[34567]86-*-solaris2*): Don't include
i386/t-crtstuff here.
Move extra_parts, i386/t-sol2 in tmake_file to libgcc/config.host.
* config/i386/t-sol2: Move to libgcc/config/i386.
libgcc:
PR bootstrap/33100
* configure.ac (i?86-*-solaris2.1[0-9]*): Only include
i386/t-crtstuff if linker supports ZERO terminator unwind entries.
* configure: Regenerate.
* config.host (i[34567]86-*-solaris2*): Move i386/t-sol2 in
tmake_file here from gcc/config.gcc.
Move extra_parts here from gcc/config.gcc.
* config/i386/t-sol2: Move here from gcc/config/i386.
Use gcc_srcdir instead of srcdir.
From-SVN: r142050
Diffstat (limited to 'libgcc/configure.ac')
-rw-r--r-- | libgcc/configure.ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libgcc/configure.ac b/libgcc/configure.ac index 1238d74..d48bccc 100644 --- a/libgcc/configure.ac +++ b/libgcc/configure.ac @@ -171,6 +171,26 @@ esac # Collect host-machine-specific information. . ${srcdir}/config.host +# Check if Solaris/x86 linker supports ZERO terminator unwind entries. +# This is after config.host so we can augment tmake_file. +# Link with -nostartfiles -nodefaultlibs since neither are present while +# building libgcc. +case ${host} in +i?86-*-solaris2.1[[0-9]]*) + cat > conftest.s <<EOF + .section .eh_frame,"a",@unwind + .zero 4 + .section .jcr,"aw",@progbits + .zero 8 +EOF + if AC_TRY_COMMAND(${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&AS_MESSAGE_LOG_FD); then + # configure expects config files in libgcc/config, so need a relative + # path here. + tmake_file="${tmake_file} ../../gcc/config/i386/t-crtstuff" + fi + ;; +esac + # Check for visibility support. This is after config.host so that # we can check for asm_hidden_op. AC_CACHE_CHECK([for __attribute__((visibility("hidden")))], |