svn commit: r276300 - projects/clang350-import/contrib/llvm/lib/MC

Dimitry Andric dim at FreeBSD.org
Sat Dec 27 14:38:16 UTC 2014


Author: dim
Date: Sat Dec 27 14:38:15 2014
New Revision: 276300
URL: https://svnweb.freebsd.org/changeset/base/276300

Log:
  Pull in r213890 from upstream llvm trunk (by Jörg Sonnenberger):
  
    Use the same .eh_frame encoding for 32bit PPC as on i386.
  
  This fixes DT_TEXTREL errors when linking C++ objects using exceptions
  on PowerPC.

Modified:
  projects/clang350-import/contrib/llvm/lib/MC/MCObjectFileInfo.cpp

Modified: projects/clang350-import/contrib/llvm/lib/MC/MCObjectFileInfo.cpp
==============================================================================
--- projects/clang350-import/contrib/llvm/lib/MC/MCObjectFileInfo.cpp	Sat Dec 27 14:26:18 2014	(r276299)
+++ projects/clang350-import/contrib/llvm/lib/MC/MCObjectFileInfo.cpp	Sat Dec 27 14:38:15 2014	(r276300)
@@ -287,6 +287,7 @@ void MCObjectFileInfo::InitELFMCObjectFi
     if (Ctx->getAsmInfo()->getExceptionHandlingType() == ExceptionHandling::ARM)
       break;
     // Fallthrough if not using EHABI
+  case Triple::ppc:
   case Triple::x86:
     PersonalityEncoding = (RelocM == Reloc::PIC_)
      ? dwarf::DW_EH_PE_indirect | dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4


More information about the svn-src-projects mailing list