Displaying 20 results from an estimated 600 matches similar to: "[LLVMdev] Possible issue with ARM/MC/MachO fixup"
2011 Oct 10
2
[LLVMdev] Adding fixups and relocations late in code generation
Gang,
I'm tasked with direct object generation for Mips and am trying to not
hack the code.
I how exactly does one set an expression to be PC relative and if the
compiler can resolve it, not produce a relocation?
In our case, the backend produces an expression for the branch which is
the target label. I make a call from the .td for the branch instruction
which calls a routine in
2011 Oct 10
0
[LLVMdev] Adding fixups and relocations late in code generation
On Oct 10, 2011, at 10:11 AM, Jack Carter wrote:
> Gang,
>
> I'm tasked with direct object generation for Mips and am trying to not
> hack the code.
>
> I how exactly does one set an expression to be PC relative and if the
> compiler can resolve it, not produce a relocation?
>
Fixups are created for all expressions that may need a relocation. The MC layer evaluates
2017 Jan 25
2
Got stuck with PC-rel branching
Big thanks, i've managed to find what's going on. The thing that dumbfolded
me a couple of times was that the error was thrown in one of the
MCAssembler methods, but never in applyFixup() itself.
On Thu, Jan 19, 2017 at 8:46 PM, Friedman, Eli <efriedma at codeaurora.org>
wrote:
> On 1/19/2017 10:21 AM, Peter Bel wrote:
>
>> Hi,
>>
>> For the function call -
2016 Apr 13
2
hexagon port broken?
Hello,
I notice that the program 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 Oct 10
1
[LLVMdev] Adding fixups and relocations late in code generation
Jim,
Both the branch and the branch target are in the same function. This is known delta and should not matter where it is relocated because the delta will remain the same once it is a .o or later.
I just want to know how to tell the compiler that this expression is target offset - branch offset.
More generally, I want to know the rules for setting up expressions in general. I have no idea if
2012 Oct 17
0
[LLVMdev] R_ARM_ABS32 disassembly with integrated-as
Hi Jim,
The diff below is not intended to be a patch, but a starting point.
It is the shortest path (I hope) to getting LLVM to emit ARM mapping
symbols to the ELF without changing any shared interfaces. Could you
have a look at the FIXME comments and offer some pointers on how to
get this code out of MCELFStreamer?
Thanks,
Greg
diff --git a/lib/MC/MCELFStreamer.cpp b/lib/MC/MCELFStreamer.cpp
2019 Oct 02
2
fixup_aarch64_movw support for COFF AArch64
Martin,
Thanks for your suggestion.
I look at these tests, try to make them work for COFF.
Adam
On 2019. 10. 02. 12:23, Martin Storsjö wrote:
> On Wed, 2 Oct 2019, Adam Kallai wrote:
>
>> I'm working Chromium targeting Windows on ARM64 platform. As a part
>> of this work I ran into an issue related to llvm in Swiftshader.
>>
>> Currently fixup_aarch64_movw
2013 Sep 25
1
[LLVMdev] arm64 / iOS support
Attached is a working patch set for llvm to be able to emit arm64
(currently as triple aarch64-apple-ios) mach-o object files, in case
someone is interested. I'm not sure if the llvm maintainers want the
patch given the previous message that there's going to be an official
patch set from apple to support this, but here is mine.
What works (tested on an iPhone 5S):
* objc strings,
2012 Oct 16
2
[LLVMdev] R_ARM_ABS32 disassembly with integrated-as
Attached is an example of how to reproduce the issue. It uses a C
file that happens to has a bunch of switch statements which are
encoded as jump tables, giving us data-in-code. Usage:
To build object files with clang via the -integrated-as versus via GCC:
$ export NDK_DIR=<my_ndk_dir>
$ export LLVM_DIR=<my_llvm_bin_dir>
$ make
To test that the generated objects contain the same
2017 Jan 19
2
Got stuck with PC-rel branching
Hi,
For the function call - yes, probably. But what about branching inside one
function (standard if-then for example)?
For example:
echo "int g() { int a = 1; if (a > 3) return 1; return 0; }" | clang -x c -
-o /tmp/a.o -c && objdump -d /tmp/a.o
Thanks,
Petr
On Thu, Jan 19, 2017 at 8:06 PM, Friedman, Eli <efriedma at codeaurora.org>
wrote:
> On 1/19/2017 9:11
2019 Oct 02
2
fixup_aarch64_movw support for COFF AArch64
Hi Everyone,
I'm working Chromium targeting Windows on ARM64 platform. As a part of
this work I ran into an issue related to llvm in Swiftshader.
Currently fixup_aarch64_movw relocation type is not supported for COFF
ARM64 (AArch64WinCOFFObjectWriter). As far as I see, Microsoft hasn't
defined indicator for this relocation type. I haven't seen documented
anywhere.
For AArch32
2013 Dec 03
0
[LLVMdev] Reporting errors when applying fixups
Matheus,
The ARM backend reports these kinds of errors using FatalError method of
MCContext. You can see some examples in ARMAsmBackend.cpp (search for "out
of range pc-relative fixup value").
-David
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On
Behalf Of Matheus Almeida
Sent: Tuesday, December 03, 2013 5:37 AM
To: llvmdev at cs.uiuc.edu
2013 Dec 03
2
[LLVMdev] Reporting errors when applying fixups
For a target that hasn't implemented branch relaxation (yet), does anyone know what is the preferred way to report an error if a fixup cannot be applied because, for example, the destination of a branch is out of range?
I suppose I could use asserts just like AArch64 is doing but that won't stop the assembler of emitting a branch to an undesired location in release builds.
Does anyone see
2011 Nov 15
2
[LLVMdev] MCELFStreamer subclassing
Well Jim, that may just be my problem.
As background I am working on the outer reaches of llvm for the direct object output for Mips. Part of what I am to do is instruct the folks working closer to the backend what I am getting that is incorrect. My first reaction is to assume that I am being fed things the correct way and that I am not handling it correctly.
I feed the compiler a source file
2013 Nov 24
2
[LLVMdev] Strange i386 cross build error.
As part of my ELLCC project (http://ellcc.org), I build clang/LLVM on my
native x86_64 Linux box and then use it to compile itself. For further
sanity checking, I then use that copy to cross compile for other targets
(arm, armeb, i386, microblaze, mips, mipsel, ppc, and x86_64). After
updating to a recent TOT revision, r195452, I get a strange error when
cross compiling for the i386:
2013 Nov 24
0
[LLVMdev] [cfe-dev] Strange i386 cross build error.
> ecc: note: diagnostic msg: /tmp/ARMAsmBackend-265222.cpp
> ecc: note: diagnostic msg: /tmp/ARMAsmBackend-265222.sh
> ecc: note: diagnostic msg:
>
> ********************
> The error only occurs for i386. Any ideas?
Open a bug report with ARMAsmBackend-265222.cpp and ARMAsmBackend-265222.sh?
Cheers,
Rafael
2013 Nov 26
1
[LLVMdev] [cfe-dev] Strange i386 cross build error.
I saw this; http://bb.pgr.jp/builders/clang-3stage-cygwin
Not sure, though, r195406 triggered this issue. I am still investigating.
I guess it could be reproducible with -target i686-* on other hosts.
2013/11/25 Rafael Espíndola <rafael.espindola at gmail.com>:
>> ecc: note: diagnostic msg: /tmp/ARMAsmBackend-265222.cpp
>> ecc: note: diagnostic msg:
2013 Dec 12
3
[LLVMdev] [RFC PATCH 1/2] x86: Fix ModR/M byte output in 16-bit addressing mode
This attempts to address http://llvm.org/bugs/show_bug.cgi?id=18220
It also fixes a test which was requiring the *wrong* output.
I'm relatively happy with this part, and it even solves most of the hard
part of feature request for .code16 in bug 8684 — which was actually why
I started prodding at this. But I could do with some help with the
16-bit signed relocation handling, which I've
2011 Nov 15
2
[LLVMdev] MCELFStreamer subclassing
Jim,
Ok, you are where I am in the understanding. This is exactly what I do for relocations applied to code. Now I want to apply fixup information to relocations applied to data.
The issue I was having was the difficulty of subclassing MCELFStreamer. Or are you saying that I should be messing with the base MCELFStreamer for a specific fixup.
One of the issues I hit initially with llvm is that
2018 Mar 16
2
[RFC] Stop giving a default CPU to the LTO plugin?
Thanks for the example, that is very useful in working out the overall
scope of the problem, which is now wider than I thought it was. I've
put some comments inline.
On 15 March 2018 at 19:12, Friedman, Eli <efriedma at codeaurora.org> wrote:
> On 3/15/2018 9:43 AM, Peter Smith via llvm-dev wrote:
>>
>> Hello everyone, this is most likely Arm specific, but could affect