This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libffi/47248] libffi build failure with ld.gold (works with trunk 20110106, fails with 20110110)
- From: "ian at airs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 10 Jan 2011 21:44:41 +0000
- Subject: [Bug libffi/47248] libffi build failure with ld.gold (works with trunk 20110106, fails with 20110110)
- Auto-submitted: auto-generated
- References: <bug-47248-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47248
Ian Lance Taylor <ian at airs dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.01.10 21:44:26
Component|bootstrap |libffi
Ever Confirmed|0 |1
--- Comment #2 from Ian Lance Taylor <ian at airs dot com> 2011-01-10 21:44:26 UTC ---
This problem is occurring because the file sysv.o has a writable .eh_frame
section. That is confusing gold's relro support. This is certainly a bug in
gold. However, there does also seem to be a problem in libffi. Why is the
libffi configure.ac setting EH_FRAME_FLAGS to "aw"?
As far as I can see, the test in libffi/configure.ac is bogus. It is compiling
code and looking for the setting of the .eh_frame section. However, the code
it is compiling has no need to handle exceptions and therefore has no .eh_frame
section. The configure script draws the wrong conclusion and emits a writable
.eh_frame section when it should emit a readable one. This should be fixed
independently of the gold problem.