Add support for the same encodings of the personality function that gnu as

supports.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122577 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2010-12-27 00:36:05 +00:00
parent def548f9a0
commit 3a83c40ab6
11 changed files with 518 additions and 46 deletions

View File

@ -231,6 +231,7 @@ namespace llvm {
MCSymbol *End;
const MCSymbol *Personality;
const MCSymbol *Lsda;
unsigned PersonalityEncoding;
};
class MCDwarfFrameEmitter {

View File

@ -25,6 +25,7 @@ enum MCFixupKind {
FK_PCRel_1, ///< A one-byte pc relative fixup.
FK_PCRel_2, ///< A two-byte pc relative fixup.
FK_PCRel_4, ///< A four-byte pc relative fixup.
FK_PCRel_8, ///< A eight-byte pc relative fixup.
FirstTargetFixupKind = 128,
@ -86,9 +87,7 @@ public:
case 1: return isPCRel ? FK_PCRel_1 : FK_Data_1;
case 2: return isPCRel ? FK_PCRel_2 : FK_Data_2;
case 4: return isPCRel ? FK_PCRel_4 : FK_Data_4;
case 8:
assert(!isPCRel && "8 byte pc relative fixup is not supported.");
return FK_Data_8;
case 8: return isPCRel ? FK_PCRel_8 : FK_Data_8;
}
}
};

View File

@ -394,7 +394,8 @@ namespace llvm {
virtual bool EmitCFIDefCfaOffset(int64_t Offset);
virtual bool EmitCFIDefCfaRegister(int64_t Register);
virtual bool EmitCFIOffset(int64_t Register, int64_t Offset);
virtual bool EmitCFIPersonality(const MCSymbol *Sym);
virtual bool EmitCFIPersonality(const MCSymbol *Sym,
unsigned Encoding);
virtual bool EmitCFILsda(const MCSymbol *Sym);
/// EmitInstruction - Emit the given @p Instruction into the current

View File

@ -1604,26 +1604,41 @@ unsigned X86ELFObjectWriter::GetRelocType(const MCValue &Target,
unsigned Type;
if (is64Bit()) {
if (IsPCRel) {
switch (Modifier) {
default:
llvm_unreachable("Unimplemented");
case MCSymbolRefExpr::VK_None:
Type = ELF::R_X86_64_PC32;
switch ((unsigned)Fixup.getKind()) {
default: llvm_unreachable("invalid fixup kind!");
case FK_PCRel_8:
assert(Modifier == MCSymbolRefExpr::VK_None);
Type = ELF::R_X86_64_PC64;
break;
case MCSymbolRefExpr::VK_PLT:
Type = ELF::R_X86_64_PLT32;
case FK_Data_4: // FIXME?
case X86::reloc_riprel_4byte:
case FK_PCRel_4:
switch (Modifier) {
default:
llvm_unreachable("Unimplemented");
case MCSymbolRefExpr::VK_None:
Type = ELF::R_X86_64_PC32;
break;
case MCSymbolRefExpr::VK_PLT:
Type = ELF::R_X86_64_PLT32;
break;
case MCSymbolRefExpr::VK_GOTPCREL:
Type = ELF::R_X86_64_GOTPCREL;
break;
case MCSymbolRefExpr::VK_GOTTPOFF:
Type = ELF::R_X86_64_GOTTPOFF;
break;
case MCSymbolRefExpr::VK_GOTPCREL:
Type = ELF::R_X86_64_GOTPCREL;
case MCSymbolRefExpr::VK_TLSGD:
Type = ELF::R_X86_64_TLSGD;
break;
case MCSymbolRefExpr::VK_TLSLD:
Type = ELF::R_X86_64_TLSLD;
break;
}
break;
case MCSymbolRefExpr::VK_GOTTPOFF:
Type = ELF::R_X86_64_GOTTPOFF;
break;
case MCSymbolRefExpr::VK_TLSGD:
Type = ELF::R_X86_64_TLSGD;
break;
case MCSymbolRefExpr::VK_TLSLD:
Type = ELF::R_X86_64_TLSLD;
case FK_PCRel_2:
assert(Modifier == MCSymbolRefExpr::VK_None);
Type = ELF::R_X86_64_PC16;
break;
}
} else {
@ -1631,7 +1646,6 @@ unsigned X86ELFObjectWriter::GetRelocType(const MCValue &Target,
default: llvm_unreachable("invalid fixup kind!");
case FK_Data_8: Type = ELF::R_X86_64_64; break;
case X86::reloc_signed_4byte:
case FK_PCRel_4:
assert(isInt<32>(Target.getConstant()));
switch (Modifier) {
default:

View File

@ -189,7 +189,7 @@ public:
virtual bool EmitCFIDefCfaOffset(int64_t Offset);
virtual bool EmitCFIDefCfaRegister(int64_t Register);
virtual bool EmitCFIOffset(int64_t Register, int64_t Offset);
virtual bool EmitCFIPersonality(const MCSymbol *Sym);
virtual bool EmitCFIPersonality(const MCSymbol *Sym, unsigned Encoding);
virtual bool EmitCFILsda(const MCSymbol *Sym);
virtual void EmitInstruction(const MCInst &Inst);
@ -758,11 +758,12 @@ bool MCAsmStreamer::EmitCFIOffset(int64_t Register, int64_t Offset) {
return false;
}
bool MCAsmStreamer::EmitCFIPersonality(const MCSymbol *Sym) {
if (this->MCStreamer::EmitCFIPersonality(Sym))
bool MCAsmStreamer::EmitCFIPersonality(const MCSymbol *Sym,
unsigned Encoding) {
if (this->MCStreamer::EmitCFIPersonality(Sym, Encoding))
return true;
OS << ".cfi_personality 0, " << *Sym;
OS << ".cfi_personality " << Encoding << ", " << *Sym;
EmitEOL();
return false;

View File

@ -509,7 +509,8 @@ static void EmitFrameMoves(MCStreamer &streamer,
}
static const MCSymbol &EmitCIE(MCStreamer &streamer,
const MCSymbol *personality) {
const MCSymbol *personality,
unsigned personalityEncoding) {
MCContext &context = streamer.getContext();
const TargetAsmInfo &asmInfo = context.getTargetAsmInfo();
const MCSection &section = *asmInfo.getEHFrameSection();
@ -559,9 +560,44 @@ static const MCSymbol &EmitCIE(MCStreamer &streamer,
streamer.EmitLabel(augmentationStart);
if (personality) {
// Personality Encoding
streamer.EmitIntValue(dwarf::DW_EH_PE_absptr, 1);
streamer.EmitIntValue(personalityEncoding, 1);
// Personality
streamer.EmitSymbolValue(personality, asmInfo.getPointerSize());
unsigned format = personalityEncoding & 0x0f;
unsigned application = personalityEncoding & 0xf0;
unsigned size;
switch (format) {
default:
assert(0 && "Unknown Encoding");
break;
case dwarf::DW_EH_PE_absptr:
case dwarf::DW_EH_PE_signed:
size = asmInfo.getPointerSize();
break;
case dwarf::DW_EH_PE_udata2:
case dwarf::DW_EH_PE_sdata2:
size = 2;
break;
case dwarf::DW_EH_PE_udata4:
case dwarf::DW_EH_PE_sdata4:
size = 4;
break;
case dwarf::DW_EH_PE_udata8:
case dwarf::DW_EH_PE_sdata8:
size = 8;
break;
}
switch (application) {
default:
assert(0 && "Unknown Encoding");
break;
case 0:
case dwarf::DW_EH_PE_indirect:
streamer.EmitSymbolValue(personality, size);
break;
case dwarf::DW_EH_PE_pcrel:
streamer.EmitPCRelSymbolValue(personality, size);
break;
}
}
// Encoding of the FDE pointers
streamer.EmitIntValue(dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4, 1);
@ -620,13 +656,16 @@ void MCDwarfFrameEmitter::Emit(MCStreamer &streamer) {
const MCContext &context = streamer.getContext();
const TargetAsmInfo &asmInfo = context.getTargetAsmInfo();
MCSymbol *fdeEnd = NULL;
DenseMap<const MCSymbol*, const MCSymbol*> Personalities;
typedef std::pair<const MCSymbol*, unsigned> personalityKey;
DenseMap<personalityKey, const MCSymbol*> personalities;
for (unsigned i = 0, n = streamer.getNumFrameInfos(); i < n; ++i) {
const MCDwarfFrameInfo &frame = streamer.getFrameInfo(i);
const MCSymbol *&cieStart = Personalities[frame.Personality];
personalityKey key(frame.Personality, frame.PersonalityEncoding);
const MCSymbol *&cieStart = personalities[key];
if (!cieStart)
cieStart = &EmitCIE(streamer, frame.Personality);
cieStart = &EmitCIE(streamer, frame.Personality,
frame.PersonalityEncoding);
fdeEnd = EmitFDE(streamer, *cieStart, frame);
if (i != n - 1)
streamer.EmitLabel(fdeEnd);

View File

@ -2254,7 +2254,7 @@ bool GenericAsmParser::ParseDirectiveCFIPersonalityOrLsda(StringRef IDVal,
MCSymbol *Sym = getContext().GetOrCreateSymbol(Name);
if (IDVal == ".cfi_personality")
return getStreamer().EmitCFIPersonality(Sym);
return getStreamer().EmitCFIPersonality(Sym, Encoding);
else {
assert(IDVal == ".cfi_lsda");
return getStreamer().EmitCFILsda(Sym);

View File

@ -187,10 +187,12 @@ bool MCStreamer::EmitCFIOffset(int64_t Register, int64_t Offset) {
return false;
}
bool MCStreamer::EmitCFIPersonality(const MCSymbol *Sym) {
bool MCStreamer::EmitCFIPersonality(const MCSymbol *Sym,
unsigned Encoding) {
EnsureValidFrame();
MCDwarfFrameInfo *CurFrame = getCurrentFrameInfo();
CurFrame->Personality = Sym;
CurFrame->PersonalityEncoding = Encoding;
return false;
}

View File

@ -27,7 +27,8 @@ TargetAsmBackend::getFixupKindInfo(MCFixupKind Kind) const {
{ "FK_Data_8", 0, 64, 0 },
{ "FK_PCRel_1", 0, 8, MCFixupKindInfo::FKF_IsPCRel },
{ "FK_PCRel_2", 0, 16, MCFixupKindInfo::FKF_IsPCRel },
{ "FK_PCRel_4", 0, 32, MCFixupKindInfo::FKF_IsPCRel }
{ "FK_PCRel_4", 0, 32, MCFixupKindInfo::FKF_IsPCRel },
{ "FK_PCRel_8", 0, 64, MCFixupKindInfo::FKF_IsPCRel }
};
assert(Kind <= sizeof(Builtins) / sizeof(Builtins[0]) &&

View File

@ -41,6 +41,7 @@ static unsigned getFixupKindLog2Size(unsigned Kind) {
case X86::reloc_signed_4byte:
case X86::reloc_global_offset_table:
case FK_Data_4: return 2;
case FK_PCRel_8:
case FK_Data_8: return 3;
}
}

View File

@ -22,27 +22,164 @@ f4:
nop
.cfi_endproc
f5:
.cfi_startproc
.cfi_personality 0x02, foo
nop
.cfi_endproc
f6:
.cfi_startproc
.cfi_personality 0x03, foo
nop
.cfi_endproc
f7:
.cfi_startproc
.cfi_personality 0x04, foo
nop
.cfi_endproc
f8:
.cfi_startproc
.cfi_personality 0x0a, foo
nop
.cfi_endproc
f9:
.cfi_startproc
.cfi_personality 0x0b, foo
nop
.cfi_endproc
f10:
.cfi_startproc
.cfi_personality 0x0c, foo
nop
.cfi_endproc
f11:
.cfi_startproc
.cfi_personality 0x08, foo
nop
.cfi_endproc
f12:
.cfi_startproc
.cfi_personality 0x10, foo
nop
.cfi_endproc
f13:
.cfi_startproc
.cfi_personality 0x12, foo
nop
.cfi_endproc
f14:
.cfi_startproc
.cfi_personality 0x13, foo
nop
.cfi_endproc
f15:
.cfi_startproc
.cfi_personality 0x14, foo
nop
.cfi_endproc
f16:
.cfi_startproc
.cfi_personality 0x1a, foo
nop
.cfi_endproc
f17:
.cfi_startproc
.cfi_personality 0x1b, foo
nop
.cfi_endproc
f18:
.cfi_startproc
.cfi_personality 0x1c, foo
nop
.cfi_endproc
f19:
.cfi_startproc
.cfi_personality 0x18, foo
nop
.cfi_endproc
f20:
.cfi_startproc
.cfi_personality 0x80, foo
nop
.cfi_endproc
f21:
.cfi_startproc
.cfi_personality 0x82, foo
nop
.cfi_endproc
f22:
.cfi_startproc
.cfi_personality 0x83, foo
nop
.cfi_endproc
f23:
.cfi_startproc
.cfi_personality 0x84, foo
nop
.cfi_endproc
f24:
.cfi_startproc
.cfi_personality 0x8a, foo
nop
.cfi_endproc
f25:
.cfi_startproc
.cfi_personality 0x8b, foo
nop
.cfi_endproc
f26:
.cfi_startproc
.cfi_personality 0x8c, foo
nop
.cfi_endproc
f27:
.cfi_startproc
.cfi_personality 0x88, foo
nop
.cfi_endproc
// CHECK: # Section 0x00000004
// CHECK-NEXT: (('sh_name', 0x00000012) # '.eh_frame'
// CHECK-NEXT: ('sh_type', 0x00000001)
// CHECK-NEXT: ('sh_flags', 0x00000002)
// CHECK-NEXT: ('sh_addr', 0x00000000)
// CHECK-NEXT: ('sh_offset', 0x00000048)
// CHECK-NEXT: ('sh_size', 0x00000088)
// CHECK-NEXT: ('sh_offset', 0x00000060)
// CHECK-NEXT: ('sh_size', 0x00000508)
// CHECK-NEXT: ('sh_link', 0x00000000)
// CHECK-NEXT: ('sh_info', 0x00000000)
// CHECK-NEXT: ('sh_addralign', 0x00000008)
// CHECK-NEXT: ('sh_entsize', 0x00000000)
// CHECK-NEXT: ('_section_data', '14000000 00000000 017a5200 01781001 1b0c0708 90010000 10000000 1c000000 00000000 01000000 00000000 1c000000 00000000 017a5052 00017810 0a000000 00000000 00001b0c 07089001 10000000 24000000 00000000 01000000 00000000 10000000 64000000 00000000 01000000 00000000 10000000 4c000000 00000000 01000000 00000000')
// CHECK-NEXT: ('_section_data', '14000000 00000000 017a5200 01781001 1b0c0708 90010000 10000000 1c000000 00000000 01000000 00000000 1c000000 00000000 017a5052 00017810 0a000000 00000000 00001b0c 07089001 10000000 24000000 00000000 01000000 00000000 10000000 64000000 00000000 01000000 00000000 10000000 4c000000 00000000 01000000 00000000 18000000 00000000 017a5052 00017810 04020000 1b0c0708 90010000 10000000 20000000 00000000 01000000 00000000 18000000 00000000 017a5052 00017810 06030000 00001b0c 07089001 10000000 20000000 00000000 01000000 00000000 1c000000 00000000 017a5052 00017810 0a040000 00000000 00001b0c 07089001 10000000 24000000 00000000 01000000 00000000 18000000 00000000 017a5052 00017810 040a0000 1b0c0708 90010000 10000000 20000000 00000000 01000000 00000000 18000000 00000000 017a5052 00017810 060b0000 00001b0c 07089001 10000000 20000000 00000000 01000000 00000000 1c000000 00000000 017a5052 00017810 0a0c0000 00000000 00001b0c 07089001 10000000 24000000 00000000 01000000 00000000 1c000000 00000000 017a5052 00017810 0a080000 00000000 00001b0c 07089001 10000000 24000000 00000000 01000000 00000000 1c000000 00000000 017a5052 00017810 0a100000 00000000 00001b0c 07089001 10000000 24000000 00000000 01000000 00000000 18000000 00000000 017a5052 00017810 04120000 1b0c0708 90010000 10000000 20000000 00000000 01000000 00000000 18000000 00000000 017a5052 00017810 06130000 00001b0c 07089001 10000000 20000000 00000000 01000000 00000000 1c000000 00000000 017a5052 00017810 0a140000 00000000 00001b0c 07089001 10000000 24000000 00000000 01000000 00000000 18000000 00000000 017a5052 00017810 041a0000 1b0c0708 90010000 10000000 20000000 00000000 01000000 00000000 18000000 00000000 017a5052 00017810 061b0000 00001b0c 07089001 10000000 20000000 00000000 01000000 00000000 1c000000 00000000 017a5052 00017810 0a1c0000 00000000 00001b0c 07089001 10000000 24000000 00000000 01000000 00000000 1c000000 00000000 017a5052 00017810 0a180000 00000000 00001b0c 07089001 10000000 24000000 00000000 01000000 00000000 1c000000 00000000 017a5052 00017810 0a800000 00000000 00001b0c 07089001 10000000 24000000 00000000 01000000 00000000 18000000 00000000 017a5052 00017810 04820000 1b0c0708 90010000 10000000 20000000 00000000 01000000 00000000 18000000 00000000 017a5052 00017810 06830000 00001b0c 07089001 10000000 20000000 00000000 01000000 00000000 1c000000 00000000 017a5052 00017810 0a840000 00000000 00001b0c 07089001 10000000 24000000 00000000 01000000 00000000 18000000 00000000 017a5052 00017810 048a0000 1b0c0708 90010000 10000000 20000000 00000000 01000000 00000000 18000000 00000000 017a5052 00017810 068b0000 00001b0c 07089001 10000000 20000000 00000000 01000000 00000000 1c000000 00000000 017a5052 00017810 0a8c0000 00000000 00001b0c 07089001 10000000 24000000 00000000 01000000 00000000 1c000000 00000000 017a5052 00017810 0a880000 00000000 00001b0c 07089001 14000000 24000000 00000000 01000000 00000000 00000000')
// CHECK-NEXT: ),
// CHECK: # Section 0x00000008
// CHECK: # Section 0x00000008
// CHECK-NEXT: (('sh_name', 0x00000036) # '.rela.eh_frame'
// CHECK-NEXT: ('sh_type', 0x00000004)
// CHECK-NEXT: ('sh_flags', 0x00000000)
// CHECK-NEXT: ('sh_addr', 0x00000000)
// CHECK-NEXT: ('sh_offset', 0x00000220)
// CHECK-NEXT: ('sh_size', 0x00000078)
// CHECK-NEXT: ('sh_offset', 0x00000930)
// CHECK-NEXT: ('sh_size', 0x000004c8)
// CHECK-NEXT: ('sh_link', 0x00000006)
// CHECK-NEXT: ('sh_info', 0x00000004)
// CHECK-NEXT: ('sh_addralign', 0x00000008)
@ -50,33 +187,309 @@ f4:
// CHECK-NEXT: ('_relocations', [
// CHECK-NEXT: # Relocation 0x00000000
// CHECK-NEXT: (('r_offset', 0x00000020)
// CHECK-NEXT: ('r_sym', 0x00000005)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000001
// CHECK-NEXT: (('r_offset', 0x0000003e)
// CHECK-NEXT: ('r_sym', 0x00000009)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x00000001)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000002
// CHECK-NEXT: (('r_offset', 0x00000054)
// CHECK-NEXT: ('r_sym', 0x00000005)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000001)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000003
// CHECK-NEXT: (('r_offset', 0x00000068)
// CHECK-NEXT: ('r_sym', 0x00000005)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000002)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000004
// CHECK-NEXT: (('r_offset', 0x0000007c)
// CHECK-NEXT: ('r_sym', 0x00000005)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000003)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000005
// CHECK-NEXT: (('r_offset', 0x0000009a)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x0000000c)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000006
// CHECK-NEXT: (('r_offset', 0x000000ac)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000004)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000007
// CHECK-NEXT: (('r_offset', 0x000000ca)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x0000000a)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000008
// CHECK-NEXT: (('r_offset', 0x000000dc)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000005)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000009
// CHECK-NEXT: (('r_offset', 0x000000fa)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x00000001)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x0000000a
// CHECK-NEXT: (('r_offset', 0x00000110)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000006)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x0000000b
// CHECK-NEXT: (('r_offset', 0x0000012e)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x0000000c)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x0000000c
// CHECK-NEXT: (('r_offset', 0x00000140)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000007)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x0000000d
// CHECK-NEXT: (('r_offset', 0x0000015e)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x0000000a)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x0000000e
// CHECK-NEXT: (('r_offset', 0x00000170)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000008)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x0000000f
// CHECK-NEXT: (('r_offset', 0x0000018e)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x00000001)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000010
// CHECK-NEXT: (('r_offset', 0x000001a4)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000009)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000011
// CHECK-NEXT: (('r_offset', 0x000001c2)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x00000001)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000012
// CHECK-NEXT: (('r_offset', 0x000001d8)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x0000000a)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000013
// CHECK-NEXT: (('r_offset', 0x000001f6)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x00000018)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000014
// CHECK-NEXT: (('r_offset', 0x0000020c)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x0000000b)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000015
// CHECK-NEXT: (('r_offset', 0x0000022a)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x0000000d)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000016
// CHECK-NEXT: (('r_offset', 0x0000023c)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x0000000c)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000017
// CHECK-NEXT: (('r_offset', 0x0000025a)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000018
// CHECK-NEXT: (('r_offset', 0x0000026c)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x0000000d)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000019
// CHECK-NEXT: (('r_offset', 0x0000028a)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x00000018)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x0000001a
// CHECK-NEXT: (('r_offset', 0x000002a0)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x0000000e)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x0000001b
// CHECK-NEXT: (('r_offset', 0x000002be)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x0000000d)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x0000001c
// CHECK-NEXT: (('r_offset', 0x000002d0)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x0000000f)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x0000001d
// CHECK-NEXT: (('r_offset', 0x000002ee)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x0000001e
// CHECK-NEXT: (('r_offset', 0x00000300)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000010)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x0000001f
// CHECK-NEXT: (('r_offset', 0x0000031e)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x00000018)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000020
// CHECK-NEXT: (('r_offset', 0x00000334)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000011)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000021
// CHECK-NEXT: (('r_offset', 0x00000352)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x00000018)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000022
// CHECK-NEXT: (('r_offset', 0x00000368)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000012)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000023
// CHECK-NEXT: (('r_offset', 0x00000386)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x00000001)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000024
// CHECK-NEXT: (('r_offset', 0x0000039c)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000013)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000025
// CHECK-NEXT: (('r_offset', 0x000003ba)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x0000000c)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000026
// CHECK-NEXT: (('r_offset', 0x000003cc)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000014)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000027
// CHECK-NEXT: (('r_offset', 0x000003ea)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x0000000a)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000028
// CHECK-NEXT: (('r_offset', 0x000003fc)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000015)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000029
// CHECK-NEXT: (('r_offset', 0x0000041a)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x00000001)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x0000002a
// CHECK-NEXT: (('r_offset', 0x00000430)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000016)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x0000002b
// CHECK-NEXT: (('r_offset', 0x0000044e)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x0000000c)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x0000002c
// CHECK-NEXT: (('r_offset', 0x00000460)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000017)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x0000002d
// CHECK-NEXT: (('r_offset', 0x0000047e)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x0000000a)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x0000002e
// CHECK-NEXT: (('r_offset', 0x00000490)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000018)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x0000002f
// CHECK-NEXT: (('r_offset', 0x000004ae)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x00000001)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000030
// CHECK-NEXT: (('r_offset', 0x000004c4)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x00000019)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000031
// CHECK-NEXT: (('r_offset', 0x000004e2)
// CHECK-NEXT: ('r_sym', 0x00000020)
// CHECK-NEXT: ('r_type', 0x00000001)
// CHECK-NEXT: ('r_addend', 0x00000000)
// CHECK-NEXT: ),
// CHECK-NEXT: # Relocation 0x00000032
// CHECK-NEXT: (('r_offset', 0x000004f8)
// CHECK-NEXT: ('r_sym', 0x0000001c)
// CHECK-NEXT: ('r_type', 0x00000002)
// CHECK-NEXT: ('r_addend', 0x0000001a)
// CHECK-NEXT: ),
// CHECK-NEXT: ])
// CHECK-NEXT: ),