This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcc/74748] New: libgcc_s.so.1 isn't created correctly for Blackfin FDPIC
- From: "wbx at openadk dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 12 Aug 2016 05:27:37 +0000
- Subject: [Bug libgcc/74748] New: libgcc_s.so.1 isn't created correctly for Blackfin FDPIC
- Authentication-results: sourceware.org; auth=none
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=74748
Bug ID: 74748
Summary: libgcc_s.so.1 isn't created correctly for Blackfin
FDPIC
Product: gcc
Version: 6.1.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: libgcc
Assignee: unassigned at gcc dot gnu.org
Reporter: wbx at openadk dot org
Target Milestone: ---
When building a cross-compiler for Blackfin with gcc 6.1.0 the resulting
libgcc_s.so.1
isn't exporting the _Unwind* and ___emutls_get_address functions correctly.
All symbols are LOCAL instead of being GLOBAL, so any application (for example
any C++
application) can not be linked as the _Unwind* functions for exception handling
are
missing.
Binutils was fixed to handle the user prefix (_) in Blackfin correctly:
https://sourceware.org/ml/binutils/2010-12/msg00356.html
Unfortunately the required change in GCC was never made.
See here for a longer discussion about the problem on the gcc-help mailinglist:
http://www.spinics.net/lists/gcchelp/msg45573.html
I tried to fix the generation of libgcc.map (the linker version script) but
failed.
I think it might be a simple task for an experienced GCC developer.
I can test any patch if you want.