Author: ian
Date: Tue Jul 22 20:49:58 2014
New Revision: 268994
URL: http://svnweb.freebsd.org/changeset/base/268994

Log:
  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

Modified:
  head/contrib/gcc/config/arm/unwind-arm.h

Modified: head/contrib/gcc/config/arm/unwind-arm.h
==============================================================================
--- head/contrib/gcc/config/arm/unwind-arm.h    Tue Jul 22 20:32:24 2014        
(r268993)
+++ head/contrib/gcc/config/arm/unwind-arm.h    Tue Jul 22 20:49:58 2014        
(r268994)
@@ -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;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to