Displaying 3 results from an estimated 3 matches for "isfixupkindpcrel".
2011 Jul 08
3
[LLVMdev] [MCJIT] Why does it produce non-PIC ELF code?
...t_table
and .eh_frame in MCJIT-printed ELF.
So it this a bug, or I just miss something?
Another question is: Why PIC code instead isn't written by MCJIT? When I
look at the code, it looks like the variable IsPCRel is used to
determine if code is non-PIC, and this variable is calculated by
isFixupKindPCRel based on some fixup types.
Is there a way to make all code PIC?
Yuri
2011 Jul 08
0
[LLVMdev] [MCJIT] Why does it produce non-PIC ELF code?
...iate for example).
> So it this a bug, or I just miss something?
>
> Another question is: Why PIC code instead isn't written by MCJIT? When I
> look at the code, it looks like the variable IsPCRel is used to
> determine if code is non-PIC, and this variable is calculated by
> isFixupKindPCRel based on some fixup types.
> Is there a way to make all code PIC?
>
> Yuri
Cheers,
Rafael
2013 Sep 25
1
[LLVMdev] arm64 / iOS support
...n false;
+ }
+}
+
+void AArch64MachOObjectWriter::RecordRelocation(
+ MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout,
+ const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target,
+ uint64_t &FixedValue) {
+ unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind());
+ unsigned Log2Size;
+ unsigned RelocType = MachO::ARM_RELOC_VANILLA;
+
+ MCSymbolRefExpr::VariantKind Modifier = MCSymbolRefExpr::VK_None;
+ if (Target.getSymA())
+ Modifier = Target.getSymA()->getKind();
+ if (!getARMFixupKindMachOInfo(Fixup.getKind(), RelocType,...