Displaying 20 results from an estimated 2000 matches similar to: "Proposal: arbitrary relocations in constant global initializers"
2015 Aug 26
2
Proposal: arbitrary relocations in constant global initializers
On Wed, Aug 26, 2015 at 03:53:33PM -0400, Rafael Espíndola wrote:
> > I'm not sure if this would be sufficient. The R_ARM_JUMP24 relocation
> > on ARM has specific semantics to implement ARM/Thumb interworking; see
> > http://infocenter.arm.com/help/topic/com.arm.doc.ihi0044e/IHI0044E_aaelf.pdf
> > Note that R_ARM_CALL has the same operation but different semantics.
2016 Oct 07
2
Proposal: arbitrary relocations in constant global initializers
On Fri, Oct 7, 2016 at 12:20 PM, Evgenii Stepanov <eugeni.stepanov at gmail.com
> wrote:
> I've tried implementing some of the alternatives mentioned in this
> thread, and so far I like this syntax the most:
>
> i32 reloc (29, void ()* @f, 3925868544)
> ; 29 = 0x1d = R_ARM_JUMP24
> ; 3925868544 = 0xea000000
>
> Note the zeroes in the relocated data instead of
2016 Oct 07
2
Proposal: arbitrary relocations in constant global initializers
On Fri, Oct 7, 2016 at 1:55 PM, Evgenii Stepanov <eugeni.stepanov at gmail.com>
wrote:
> On Fri, Oct 7, 2016 at 1:22 PM, Peter Collingbourne <peter at pcc.me.uk>
> wrote:
> > On Fri, Oct 7, 2016 at 12:20 PM, Evgenii Stepanov
> > <eugeni.stepanov at gmail.com> wrote:
> >>
> >> I've tried implementing some of the alternatives mentioned in
2016 Oct 07
2
Proposal: arbitrary relocations in constant global initializers
On Fri, Oct 7, 2016 at 2:48 PM, Evgenii Stepanov <eugeni.stepanov at gmail.com>
wrote:
> On Fri, Oct 7, 2016 at 2:28 PM, Peter Collingbourne <peter at pcc.me.uk>
> wrote:
> > On Fri, Oct 7, 2016 at 1:55 PM, Evgenii Stepanov <
> eugeni.stepanov at gmail.com>
> > wrote:
> >>
> >> On Fri, Oct 7, 2016 at 1:22 PM, Peter Collingbourne <peter
2013 Nov 04
3
[LLVMdev] [ARM] Mixing rel/rela relocations
On 11/04/2013 11:15 AM, Eric Christopher wrote:
>
>
>
> On Mon, Nov 4, 2013 at 11:05 AM, Shankar Easwaran
> <shankare at codeaurora.org <mailto:shankare at codeaurora.org>> wrote:
>
> Hi,
>
> I was looking at the ARM ABI
> docs(http://infocenter.arm.__com/help/topic/com.arm.doc.__ihi0044e/IHI0044E_aaelf.pdf
>
2013 Nov 04
0
[LLVMdev] [ARM] Mixing rel/rela relocations
On 11/4/2013 1:40 PM, Jack Carter wrote:
> On 11/04/2013 11:15 AM, Eric Christopher wrote:
>>
>>
>>
>> On Mon, Nov 4, 2013 at 11:05 AM, Shankar Easwaran
>> <shankare at codeaurora.org <mailto:shankare at codeaurora.org>> wrote:
>>
>> Hi,
>>
>> I was looking at the ARM ABI
>>
2013 Nov 04
4
[LLVMdev] [ARM] Mixing rel/rela relocations
Hi,
I was looking at the ARM ABI
docs(http://infocenter.arm.com/help/topic/com.arm.doc.ihi0044e/IHI0044E_aaelf.pdf)
and they mention.
"A binary file may use REL or RELA relocations or a mixture of the two
(but multiple relocations for the same
address must use only one type)."
Does LLVM emit rel/rela relocations with ARM ?
Any tests ?
Thanks
Shankar Easwaran
--
Qualcomm
2016 Oct 18
2
Proposal: arbitrary relocations in constant global initializers
To the right list this time.
On Tue, Oct 18, 2016 at 12:43 PM Eric Christopher <echristo at gmail.com>
wrote:
> Hi Peter,
>
> Coming back to his now.
>
>
> IFCC, the previous attempt to teach LLVM to emit jump tables, was removed
> for complicating how functions are emitted, in particular requiring a
> subtarget-specific instruction emitter available in
2013 Nov 04
0
[LLVMdev] [ARM] Mixing rel/rela relocations
On Mon, Nov 4, 2013 at 11:05 AM, Shankar Easwaran
<shankare at codeaurora.org>wrote:
> Hi,
>
> I was looking at the ARM ABI docs(http://infocenter.arm.
> com/help/topic/com.arm.doc.ihi0044e/IHI0044E_aaelf.pdf) and they mention.
>
> "A binary file may use REL or RELA relocations or a mixture of the two
> (but multiple relocations for the same
> address must use
2015 Aug 04
2
[LLVMdev] Help needed about code & data mixing when emit object files
Hi,
I'm building a new backend which can only load very limited range of imm.
So I decided to use constant pool, and place constant pool entries close
enough to instructions use the entries (we have very limited range
PC-relative memory load). However, lld & llc output the object files that
gather all constant pool entries into one section. How can I make them mix
these entries into code
2015 Jul 29
0
[LLVMdev] Proposal: arbitrary relocations in constant global initializers
Hi,
I’d like to make this proposal for extending the Constant hierarchy with
a mechanism for introducing custom relocations in global initializers. This
could also be seen as a first step towards adding a “bag-of-bytes with
relocations” representation for global initializers.
Problem
In order to implement control flow integrity for indirect function calls, we
would like to add a set of
2017 Jun 28
3
Building llvm with clang and lld on arm and the llvm arm backend relocation on position independent code
I've successfully used Peter's patches to get past those relocation errors.
On 6/28/17, 9:36 AM, "llvm-dev on behalf of Peter Smith via llvm-dev" <llvm-dev-bounces at lists.llvm.org on behalf of llvm-dev at lists.llvm.org> wrote:
Yes it should cover the following relocations:
R_ARM_CALL (ARM BL/BLX)
R_ARM_JUMP24 (ARM B)
R_ARM_THM_CALL (Thumb BL/BLX)
2013 May 13
0
[LLVMdev] Generate PE\COFF file with ARM instructions
Moshe, Nir wrote:
[...]
> I have a question about the LLVM ARM backend:
>
> I try to build *.c files for Windows Phone (Windows 8) - so, basically
> I need to generate an "arm-pe" file (I *think* it has the same file
> structure like x86-pe file, but i am not sure).
> unfortunately, LLVM has no support with ARM PE\COFF.
We recently ran into this. Unfortunately
2017 Jun 28
3
Building llvm with clang and lld on arm and the llvm arm backend relocation on position independent code
Oh, so it looks like I hit a bit of a wall there :-) I’ll take a look thanks.
That bug talks about R_ARM_THM_CALL which I assume are thumb related.
Will your implementation fix also R_ARM_CALL errors?
> On 28 Jun 2017, at 17:15, Peter Smith <peter.smith at linaro.org> wrote:
>
> Hello Alessandro,
>
> The LLD ARM port doesn't currently support range extension thunks,
2017 Jun 28
2
Building llvm with clang and lld on arm and the llvm arm backend relocation on position independent code
The bottom of the bug has the revision numbers (e.g. D34035). That one
corresponds to e.g. https://reviews.llvm.org/D34035
There's also https://reviews.llvm.org/D34634 which contains all of Peter's
patches, but it's not going to rebase cleanly once the individual patches
start going in.
On 6/28/17, 10:56 AM, "Alessandro Pistocchi" <apukfreelance at gmail.com> wrote:
2017 Jun 30
3
Building llvm with clang and lld on arm and the llvm arm backend relocation on position independent code
At a guess that looks like your llvm and lld checkouts are not quite
in synch. It will be worth updating llvm and lld to top of trunk.
I've rebased the consolidated patch https://reviews.llvm.org/D34634
this morning, it might be worth trying that if you are seeing
problems.
Peter
On 29 June 2017 at 22:09, Alessandro Pistocchi <apukfreelance at gmail.com> wrote:
> Hi, I tried
2013 May 13
4
[LLVMdev] Generate PE\COFF file with ARM instructions
Hi guys,
I have a question about the LLVM ARM backend:
I try to build *.c files for Windows Phone (Windows 8) - so, basically I need to generate an "arm-pe" file (I *think* it has the same file structure like x86-pe file, but i am not sure).
unfortunately, LLVM has no support with ARM PE\COFF.
Any ideas?
How difficult is to add the support in this file format? (LLC can generate ARM
2016 Jun 03
2
[RFC][LLD][ARM] Initial ARM port for LLD
Hello everyone,
The review http://reviews.llvm.org/D20951 implements initial support
for the ARM architecture in LLD. To keep the patch size down, and to
avoid the complexities of interworking between ARM and Thumb, there
is just enough support for an ARM only Hello World to link and run on
ARM Linux [*].
My main aim is to get this functionality committed as the basis of an
ARM port and would
2017 Jun 28
2
Building llvm with clang and lld on arm and the llvm arm backend relocation on position independent code
> On 27 Jun 2017, at 13:25, Peter Smith <peter.smith at linaro.org> wrote:
>
> Hello Alessandro,
>
> Despite the statement in the HowToCrossCompileLLVM guide "If you’re
> using Clang as the cross-compiler, there is a problem in the LLVM ARM
> back-end that is producing absolute relocations on
> position-independent code (R_ARM_THM_MOVW_ABS_NC), so for now, you
2016 Oct 28
3
[cfe-dev] Using lld in ELLCC for different targets
On 28 October 2016 at 23:02, Rui Ueyama via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Awesome results!
I'm surprised! LLD is barely working on ARM at the moment. :)
> I wonder if ARM32 BE is a real thing. I know that the processor is
> bi-endian, but is there any system that uses ARM32 in big-endian mode?
Yes... it is "a thing". :)
ARM has two modes: BE32 and