summaryrefslogtreecommitdiffstats
path: root/contrib/gcc
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-08-25 18:45:15 +0000
committerian <ian@FreeBSD.org>2014-08-25 18:45:15 +0000
commit056154207bec2358ab9c949ba7db0b25066c3a69 (patch)
treede6bd4c4b0f5485b453207e79ac2c32f4aaf8ed6 /contrib/gcc
parente0de69b3b8f8fe7d80ce7e95b20c12fd2d93c608 (diff)
downloadFreeBSD-src-056154207bec2358ab9c949ba7db0b25066c3a69.zip
FreeBSD-src-056154207bec2358ab9c949ba7db0b25066c3a69.tar.gz
MFC r268994: C++ exception/unwind handling fix
Add FreeBSD to the list of environments that needs to handle R_ARM_TARGET2 relocations in unwind data as pc-relative indirect references. Note that the commit log for r269792 incorrectly claims that it includes this change, but I apparently fumbled it somehow, so this is the real MFC.
Diffstat (limited to 'contrib/gcc')
-rw-r--r--contrib/gcc/config/arm/unwind-arm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gcc/config/arm/unwind-arm.h b/contrib/gcc/config/arm/unwind-arm.h
index 8a5c5ce..ab8531d 100644
--- a/contrib/gcc/config/arm/unwind-arm.h
+++ b/contrib/gcc/config/arm/unwind-arm.h
@@ -232,7 +232,7 @@ extern "C" {
if (!tmp)
return 0;
-#if defined(linux) || defined(__NetBSD__)
+#if defined(linux) || defined(__NetBSD__) || defined(__FreeBSD__)
/* Pc-relative indirect. */
tmp += ptr;
tmp = *(_Unwind_Word *) tmp;
OpenPOWER on IntegriCloud