summaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure128
1 files changed, 64 insertions, 64 deletions
diff --git a/gcc/configure b/gcc/configure
index 933bdd9e293..77dfa405ddf 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -16014,70 +16014,70 @@ echo "${ECHO_T}$gcc_cv_ld_pie" >&6
echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
gcc_cv_ld_eh_gc_sections=no
-if test $in_tree_ld = yes ; then
- if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
- && test $in_tree_ld_is_elf = yes; then
- gcc_cv_ld_eh_gc_sections=yes
- fi
-elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
- cat > conftest.s <<EOF
- .section .text
-.globl _start
- .type _start, @function
-_start:
- .long foo
- .size _start, .-_start
- .section .text.foo,"ax",@progbits
- .type foo, @function
-foo:
- .long 0
- .size foo, .-foo
- .section .gcc_except_table.foo,"a",@progbits
-.L0:
- .long 0
- .section .eh_frame,"a",@progbits
- .long .L0
-EOF
- if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
- if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
- | grep "gc-sections option ignored" > /dev/null; then
- gcc_cv_ld_eh_gc_sections=no
- elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
- gcc_cv_ld_eh_gc_sections=yes
- # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
- if test x$gcc_cv_as_comdat_group != xyes; then
- gcc_cv_ld_eh_gc_sections=no
- cat > conftest.s <<EOF
- .section .text
-.globl _start
- .type _start, @function
-_start:
- .long foo
- .size _start, .-_start
- .section .gnu.linkonce.t.foo,"ax",@progbits
- .type foo, @function
-foo:
- .long 0
- .size foo, .-foo
- .section .gcc_except_table.foo,"a",@progbits
-.L0:
- .long 0
- .section .eh_frame,"a",@progbits
- .long .L0
-EOF
- if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
- if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
- | grep "gc-sections option ignored" > /dev/null; then
- gcc_cv_ld_eh_gc_sections=no
- elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
- gcc_cv_ld_eh_gc_sections=yes
- fi
- fi
- fi
- fi
- fi
- rm -f conftest.s conftest.o conftest
-fi
+#if test $in_tree_ld = yes ; then
+# if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
+# && test $in_tree_ld_is_elf = yes; then
+# gcc_cv_ld_eh_gc_sections=yes
+# fi
+#elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
+# cat > conftest.s <<EOF
+# .section .text
+#.globl _start
+# .type _start, @function
+#_start:
+# .long foo
+# .size _start, .-_start
+# .section .text.foo,"ax",@progbits
+# .type foo, @function
+#foo:
+# .long 0
+# .size foo, .-foo
+# .section .gcc_except_table.foo,"a",@progbits
+#.L0:
+# .long 0
+# .section .eh_frame,"a",@progbits
+# .long .L0
+#EOF
+# if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
+# if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
+# | grep "gc-sections option ignored" > /dev/null; then
+# gcc_cv_ld_eh_gc_sections=no
+# elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
+# gcc_cv_ld_eh_gc_sections=yes
+# # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
+# if test x$gcc_cv_as_comdat_group != xyes; then
+# gcc_cv_ld_eh_gc_sections=no
+# cat > conftest.s <<EOF
+# .section .text
+#.globl _start
+# .type _start, @function
+#_start:
+# .long foo
+# .size _start, .-_start
+# .section .gnu.linkonce.t.foo,"ax",@progbits
+# .type foo, @function
+#foo:
+# .long 0
+# .size foo, .-foo
+# .section .gcc_except_table.foo,"a",@progbits
+#.L0:
+# .long 0
+# .section .eh_frame,"a",@progbits
+# .long .L0
+#EOF
+# if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
+# if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
+# | grep "gc-sections option ignored" > /dev/null; then
+# gcc_cv_ld_eh_gc_sections=no
+# elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
+# gcc_cv_ld_eh_gc_sections=yes
+# fi
+# fi
+# fi
+# fi
+# fi
+# rm -f conftest.s conftest.o conftest
+#fi
case "$target" in
hppa*-*-linux*)
# ??? This apparently exposes a binutils bug with PC-relative relocations.