This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [gold][PATCH] PR gold/17675: pie_copyrelocs_test fails with GCC 4.2
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Cary Coutant <ccoutant at google dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Wed, 3 Dec 2014 10:30:22 -0800
- Subject: Re: [gold][PATCH] PR gold/17675: pie_copyrelocs_test fails with GCC 4.2
- Authentication-results: sourceware.org; auth=none
- References: <20141203172043 dot GA26576 at intel dot com> <20141203172853 dot GA25289 at intel dot com> <CAHACq4rdPBZbsBTDq+UHGjTk-mS0rQYZBept8oW=zdBHYpsv5Q at mail dot gmail dot com>
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