[gold][PATCH] PR gold/17675: pie_copyrelocs_test fails with GCC 4.2

H.J. Lu hjl.tools@gmail.com
Wed Dec 3 18:30:00 GMT 2014


On Wed, Dec 3, 2014 at 10:16 AM, Cary Coutant <ccoutant@google.com> wrote:
>> Never mind.  Assembly testcase doesn't work for none x86-64 targerts.
>
> Yeah. Besides, that's a lot of complexity just to deal with such an
> old compiler. What's the cause of the problem, anyway? Would it be
> sufficient to add the -fno-exceptions flag?
>

This works for me.  OK for trunk?

Thanks.

-- 
H.J.
---
diff --git a/gold/ChangeLog b/gold/ChangeLog
index b75530f..b98b76a 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,9 @@
+2014-12-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+ PR gold/17675
+ * testsuite/Makefile.am (pie_copyrelocs_test_CXXFLAGS): New.
+ * testsuite/Makefile.in: Regenerated.
+
 2014-12-03  Alan Modra  <amodra@gmail.com>

  PR 17566
diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am
index 35cd013..7604282 100644
--- a/gold/testsuite/Makefile.am
+++ b/gold/testsuite/Makefile.am
@@ -520,6 +520,7 @@ two_file_pie_test: two_file_test_1_pie.o
two_file_test_1b_pie.o \
 check_PROGRAMS += pie_copyrelocs_test
 pie_copyrelocs_test_SOURCES = pie_copyrelocs_test.cc
 pie_copyrelocs_test_DEPENDENCIES = gcctestdir/ld pie_copyrelocs_shared_test.so
+pie_copyrelocs_test_CXXFLAGS = -fno-exceptions -fno-asynchronous-unwind-tables
 pie_copyrelocs_test_LDFLAGS = -Bgcctestdir/ -Wl,-R,. -pie
 pie_copyrelocs_test_LDADD = pie_copyrelocs_shared_test.so
 pie_copyrelocs_shared_test.o: pie_copyrelocs_shared_test.cc



More information about the Binutils mailing list