///
bool NonLocalEHFrameLabel; // Defaults to false.
+ /// Force32BitFDEReference - Force the FDE initial location and address
+ /// range to be 32-bit sized.
+ ///
+ bool Force32BitFDEReference; // Defaults to true.
+
/// GlobalEHDirective - This is the directive used to make exception frame
/// tables globally visible.
///
bool doesRequireNonLocalEHFrameLabel() const {
return NonLocalEHFrameLabel;
}
+ bool doesRequire32BitFDEReference() const {
+ return Force32BitFDEReference;
+ }
const char *getGlobalEHDirective() const {
return GlobalEHDirective;
}
Asm->EOL("FDE CIE offset");
- EmitReference("eh_func_begin", EHFrameInfo.Number, true);
+ EmitReference("eh_func_begin", EHFrameInfo.Number, true,
+ TAI->doesRequire32BitFDEReference());
Asm->EOL("FDE initial location");
EmitDifference("eh_func_end", EHFrameInfo.Number,
- "eh_func_begin", EHFrameInfo.Number);
+ "eh_func_begin", EHFrameInfo.Number,
+ TAI->doesRequire32BitFDEReference());
Asm->EOL("FDE address range");
// If there is a personality and landing pads then point to the language
DwarfRequiresFrameSection = true;
FDEEncodingRequiresSData4 = true;
NonLocalEHFrameLabel = false;
+ Force32BitFDEReference = true;
GlobalEHDirective = 0;
SupportsWeakOmittedEHFrame = true;
DwarfSectionOffsetDirective = 0;
HasSingleParameterDotFile = false;
FDEEncodingRequiresSData4 = false;
NonLocalEHFrameLabel = true;
+ Force32BitFDEReference = false;
if (TM.getRelocationModel() == Reloc::Static) {
StaticCtorsSection = ".constructor";
StaticDtorsSection = ".destructor";