[Buildroot] [PATCHv4] bfin: fix issues with internal toolchain, re-enable C++ support

Waldemar Brodkorb wbx at openadk.org
Fri Aug 19 22:27:38 UTC 2016


Hi Thomas,
Thomas Petazzoni wrote,

> From: Waldemar Brodkorb <wbx at openadk.org>
> 
> The three patches allow to compile applications using TLS emulation from
> libgcc or C++ applications.
> 
> The patches 892-libgcc-mkmap-symver-support-skip_underscore.patch and
> 893-libgcc-config-bfin-use-the-generic-linker-version-in.patch fixes how
> libgcc is generated, by making the necessary libgcc symbols declared
> "GLOBAL", and therefore visible outside of libgcc. This fixes a large
> number of undefined reference issues (for either C++ applications or
> applications using TLS emulation). This was reported as gcc PR74748.
> 
> The patch 894-libgcc-fix-DWARF-compilation-with-FDPIC-targets.patch
> allows to build DWARF in FDPIC mode. This patch replaces the older
> 892-disable-dwarf-bfin.patch, as instead of disabling DWARF support, it
> fixes it. This was reported as gcc PR68468.
> 
> In order to get C++ working without unresolved symbols, we also need to
> disable symbol versioning (--disable-symvers). This is a remaining issue
> in gcc which will be investigated at a later point.
> 
> Since this commit fixes C++ support in Blackfin, it re-enables the
> selection of C++ support for this architecture.

Tested and works great. Awesome. Wonderful.
Thanks for cleaning up my messy hacks :)

best regards
 Waldemar



More information about the buildroot mailing list