llvm-project/libcxxabi
Logan Chien 338d6de5fa Fix ARM __cxa_end_cleanup() and gc-sections.
This commit adds SHF_ALLOC and SHF_EXECINSTR section flags to
`.text.__cxa_end_cleanup` section.  This fixes a link error when we are
using integrated-as and `ld.gold` (with `-Wl,--gc-sections` and
`-Wl,--fatal-warnings`.)

Detailed Explanation:

1. There might be some problem with LLVM integrated-as.  It is not
   emitting any section flags for text sections.  (This will be fixed in
   an independent commit.)

2. `ld.gold` will skip the external symbols in the section without
   SHF_ALLOC.  This is the reason why `.text.__cxa_end_cleanup_impl`
   section is discarded even though it is referenced by
   `__cxa_end_cleanup()`.

This commit workaround the problem by specifying the section flags
explicitly.

Fix http://llvm.org/PR21292

llvm-svn: 256241
2015-12-22 14:38:30 +00:00
..
cmake [libc++abi] Use libgcc and libgcc_s to provide _Unwind symbols instead of libgcc_eh.a 2015-12-14 22:20:04 +00:00
include ibc++abi: mark visibility 2015-12-04 02:14:58 +00:00
lib Add ability to set OPTIONS for compile 2013-09-09 23:53:08 +00:00
src Fix ARM __cxa_end_cleanup() and gc-sections. 2015-12-22 14:38:30 +00:00
test Fix LIBCXXABI_HAS_NO_THREADS configuration. 2015-10-14 19:21:38 +00:00
www Update to new lists.llvm.org 2015-08-05 04:01:26 +00:00
.arcconfig Add an .arcconfig for libc++abi. 2014-10-17 16:48:56 +00:00
.gitignore .gitignore: ignore vim swap files 2015-12-04 02:15:02 +00:00
CMakeLists.txt Update to new lists.llvm.org 2015-08-05 04:01:26 +00:00
CREDITS.TXT Adding ABI support for __cxa_throw_bad_array_new_length. 2014-09-11 17:26:43 +00:00
LICENSE.TXT Update copyright year to 2015. 2015-03-12 20:13:54 +00:00