From fc6840cc0280caddc6e5fe8136404d128c248645 Mon Sep 17 00:00:00 2001 From: Ian Lepore Date: Tue, 22 Jul 2014 20:49:58 +0000 Subject: [PATCH] Add FreeBSD to the list of environments that needs to handle R_ARM_TARGET2 relocations in unwind data as pc-relative indirect references. MFC after: 1 week --- contrib/gcc/config/arm/unwind-arm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/gcc/config/arm/unwind-arm.h b/contrib/gcc/config/arm/unwind-arm.h index 8a5c5ce35d25..ab8531d14fe7 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;