Displaying 9 results from an estimated 9 matches for "ispcrel".
2015 Jan 26
2
[LLVMdev] [llvm] r188726 - Adding PIC support for ELF on x86_64 platforms
...to make a relocation section relative instead of symbol relative.
- intptr_t Addend;
+ int64_t Addend;
+
+ /// SymOffset - Section offset of the relocation entry's symbol (used for GOT
+ /// lookup).
+ uint64_t SymOffset;
/// True if this is a PCRel relocation (MachO specific).
bool IsPCRel;
@@ -97,20 +101,26 @@ public:
RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend)
: SectionID(id), Offset(offset), RelType(type), Addend(addend),
- IsPCRel(false), Size(0) {}
+ SymOffset(0), IsPCRel(false), Size(0) {}
+
+ RelocationEntry(unsigned id, uin...
2010 Aug 16
1
[LLVMdev] [PATCH] fix "32-bit shift" warning in MSVC
...bit shift implicitly converted to
64 bits (was 64-bit shift intended?)
Index: lib/MC/MachObjectWriter.cpp
===================================================================
--- lib/MC/MachObjectWriter.cpp (revision 111120)
+++ lib/MC/MachObjectWriter.cpp (working copy)
@@ -769,7 +769,7 @@
IsPCRel = 1;
FixedValue = (FixupAddress - Layout.getSymbolAddress(SD_B) +
Target.getConstant());
- FixedValue += 1 << Log2Size;
+ FixedValue += static_cast<uint64_t>(1) << Log2Size;
} else {
FixedValue = 0;
}
-------------- next part...
2011 Jul 08
3
[LLVMdev] [MCJIT] Why does it produce non-PIC ELF code?
...ode since it causes
overflows in general case. And particularly in case of .gcc_except_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
2016 Dec 13
1
Offset too large on scattered relocations
...could silently record
incorrect offsets from the assignment later in
RecordARMScatteredRelocation():
MRE.r_word0 = ((FixupOffset << 0) |
(Type << 24) |
(MovtBit << 28) |
(ThumbBit << 29) |
(IsPCRel << 30) |
MachO::R_SCATTERED);
Rob
On Tue, Dec 6, 2016 at 8:38 PM, Nick Kledzik <kledzik at apple.com> wrote:
>
> On Dec 6, 2016, at 5:09 PM, Rob Dalvik <rob.dalvik at gmail.com> wrote:
>
> CCing Nick Kledzik as I posed this question on IRC and T...
2013 Sep 25
1
[LLVMdev] arm64 / iOS support
...fos[AArch64::NumTargetFixupKinds] = {
+ // This table *must* be in the order that the fixup_* kinds are defined in
+ // AArch64FixupKinds.h.
+ //
+ // Name Offset (bits) Size (bits) Flags
+ { "fixup_a64_ld_prel", 0, 32, MCFixupKindInfo::FKF_IsPCRel },
+ { "fixup_a64_adr_prel", 0, 32, MCFixupKindInfo::FKF_IsPCRel },
+ { "fixup_a64_adr_prel_page", 0, 32, MCFixupKindInfo::FKF_IsPCRel },
+ { "fixup_a64_add_lo12", 0, 32, 0 },
+ { "fixup_a64_ldst8_lo12", 0, 32, 0 },
+ { "fixup_a6...
2016 Apr 13
2
hexagon port broken?
...gram compiled by llvm-trunk compiler can't run
correctly on hexagon-sim. The problem may caused by unimplemented
backend applyFixup function.
void applyFixup(MCFixup const & /*Fixup*/, char * /*Data*/,
unsigned /*DataSize*/, uint64_t /*Value*/,
bool /*IsPCRel*/) const override {
return;
}
Best regards,
Mingjie
2011 Jul 08
0
[LLVMdev] [MCJIT] Why does it produce non-PIC ELF code?
...ons since that is the size available
in the instruction (there is no call with a 64 bit immediate 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
2016 Dec 07
0
Offset too large on scattered relocations
> On Dec 6, 2016, at 5:09 PM, Rob Dalvik <rob.dalvik at gmail.com> wrote:
>
> CCing Nick Kledzik as I posed this question on IRC and Tim Northover suggested you as a good resource for this.
>
> I came across an error due to a scattered relocation offset being larger than 2**24 and I was hoping to find more information on scattered relocations. These are MachO specific, and
2016 Dec 07
2
Offset too large on scattered relocations
CCing Nick Kledzik as I posed this question on IRC and Tim Northover
suggested you as a good resource for this.
I came across an error due to a scattered relocation offset being larger
than 2**24 and I was hoping to find more information on scattered
relocations. These are MachO specific, and Ive not been able to find any
documentation on them outside of source code.
I have a couple of immediate