mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
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.
This commit is contained in:
parent
7b4faa6c04
commit
1ee9c19fb9
1 changed files with 1 additions and 0 deletions
|
|
@ -287,6 +287,7 @@ void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) {
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue