Displaying 20 results from an estimated 1100 matches similar to: "Offset too large on scattered relocations"
2016 Dec 13
1
Offset too large on scattered relocations
Thanks for the response Nick,
Do you think there is value in adding the check for FixupOffset > 0xffffff
into the ARM backend? The lack of that seems like it could silently record
incorrect offsets from the assignment later in
RecordARMScatteredRelocation():
MRE.r_word0 = ((FixupOffset << 0) |
(Type << 24) |
(MovtBit << 28) |
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
2014 Jun 10
4
[LLVMdev] MachO non-external X86_64_RELOC_UNSIGNED
Thank you for the explanation. Does that mean r_symbolnum is basically
redundant in that case? Also, let me ask you how to handle the following
use case which is somewhat related. Currently in MCJIT for MachO we are
relocating all the debug sections. Eventually (as ELF does), it would be
good to avoid this. However, this means that the debugger would have to
handle relocations (as lldb currently
2013 Sep 03
2
[LLVMdev] LLVM in place of Dalvik on Android
Hi all, does anyone here know if Google has considered trading out the
Dalvik VM for LLVM?
What specifically I have in mind is that apps could be compiled to LLVM IR
and distributed (after optimization) in that form, and then compiled to
machine code on the Android machine itself. This would leave only ISA
optimizations to the Android machine.
It would seem, from my limited perspective, that
2014 Feb 10
2
[LLVMdev] Fwd: [windows) how to use weak references with llvm 3.4 and windows?
Hello,
I'm generating C code (and the resulting obj files) using llvm 3.4 for both
unix and windows.
And I use the dreaded weak references, that, for windows, are not too
widely supported.
When I link my application on linux, I have no issue.
But when I'm doing the same on windows using mingw I got a duplicate symbol
error :
2013 Sep 21
2
[LLVMdev] [ASan] static linking on android?
Why does compiler-rt ship a shared object for ASan on Android instead
of a static library? Would statically linking ASan on Android at
least be safe for standalone executables?
And if I'm wanting to use ASan in C++ code that is invoked from an
APK, can I statically link ASan? If not, what is the reason we need
to preload Dalvik with the ASan shared object? I assume static
linking here
2014 Feb 11
2
[LLVMdev] Fwd: [windows) how to use weak references with llvm 3.4 and windows?
Thanks for your clear answer. Do you know what modifier should I use to
declare such weak symbols in my llvm intermediate code?
So that it can be compiled to the .o file with the weak attribute ?
Le 10 févr. 2014 19:44, "Reid Kleckner" <rnk at google.com> a écrit :
> COFF doesn't support the same kind of concept of 'weak' that ELF does.
> This is the issue that
2014 Jun 09
4
[LLVMdev] MachO non-external X86_64_RELOC_UNSIGNED
Hello everybody,
I would like some insights on the semantics of the X86_64_RELOC_UNSIGNED
relocation type. When r_extern=1, the semantics seem pretty clear:
Let x be a pointer to r_offset of appropriate size given by r_size, then
*x += addr_of_symbol(r_symbolnum)
However, when r_extern=0 the correct behavior is not clear. By analogy with
the above, I would have expected
*x +=
2013 Sep 23
2
[LLVMdev] [ASan] static linking on android?
For the same reason we use shared runtime on OSX.
We intercept libc calls by declaring a function with the same name in
the sanitizer runtime library. Glibc loader puts main executable early
in the symbol lookup order, which lets us interpose symbols from
shared libraries with symbols from statically linked sanitizer
runtime. Android (and AFAIK most other platforms) does not allow that,
which is
2014 Feb 12
2
[LLVMdev] Fwd: [windows) how to use weak references with llvm 3.4 and windows?
So instead of using linkagetypes.weak I should use externalweaklinkage ?
Le 11 févr. 2014 18:29, "Reid Kleckner" <rnk at google.com> a écrit :
> You'd have to use extern_weak linkage. Clang compiles the foo declaration
> to:
> $ clang -cc1 -emit-llvm -o - t.c | grep declare.*@foo
> declare extern_weak i32 @foo(...) #1
>
>
>
> On Tue, Feb 11, 2014 at
2013 Sep 21
0
[LLVMdev] [ASan] static linking on android?
+eugenis@
On Sat, Sep 21, 2013 at 4:58 AM, Greg Fitzgerald <garious at gmail.com> wrote:
> Why does compiler-rt ship a shared object for ASan on Android instead
> of a static library? Would statically linking ASan on Android at
> least be safe for standalone executables?
>
> And if I'm wanting to use ASan in C++ code that is invoked from an
> APK, can I statically
2016 Jan 12
3
Does LLVM have java frontend?
Hi,
Does LLVM have java frontend which can change Java bytecode to LLVM IR?
Thanks a lot!
Best,
Linhai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160112/1d9c0c7b/attachment.html>
2013 Sep 24
0
[LLVMdev] [ASan] static linking on android?
> Static runtime will only intercept calls from the main executable, but
> not from any libraries. This may work for simple standalone programs,
> but you may run into puzzling failures.
What type of failures do you mean? Does the symbol mismatch break
assumptions in the ASan runtime? It's easy to imagine, for example,
ASan missing use-after-free bugs because the call to free() is
2013 Jun 21
0
[LLVMdev] ASan for Android Applications
You are citing the "Android platform workflow" section, which is about
sanitizing components of the Android system itself.
For NDK apps, see "Android NDK workflow" in the same document.
You need -eng build because preloading libraries into dalvik vm is not
allowed in user builds. JellyBean includes several bugfixes in the
dynamic loader that asan needs.
Was there any useful
2013 Jun 21
3
[LLVMdev] ASan for Android Applications
From:
http://address-sanitizer.googlecode.com/svn-history/r1624/wiki/Android.wiki
> AddressSanitizer is fully supported in AOSP starting with JellyBean release. To run
> applications built with ASan you'll need an -eng build of Android.
>
> To build any part of Android system with ASan, add
> LOCAL_ADDRESS_SANITIZER:=true to the appropriate Android.mk.
I don't see that
2010 Nov 16
1
[LLVMdev] Converting C++ to Java
Hi
We want to use our existing engine sourcecode to build Java applications.
Our core engine is written in C/C++ and has hooks to platform specific
functions which we have filled in for lots of platforms so far, PC, DS, PS2,
PSP, XBOX, IPHONE etc. All of which can use C/C++ as their compiler. However
now we want to target Android platforms, so we are looking into converting
the main body of
2013 Jan 21
1
[LLVMdev] Mapping registers into memory address
Hi all,
I'm working on using LLVM to generate ARM code for Android's Dalvik VM.
I translated some DEX bytecode to LLVM IR, and now I wnat to translate
these IR into ARM assembly by using llc.
But there are some ABI problems (Register mapping) should be solved.
Dalvik VM stores virtual register in the fixed memory address.
For example,
v0 -> [r5,#0]
v1 -> [r5,#4]
v2 -> [r5,#8]
v3
2013 Jun 21
1
[LLVMdev] ASan for Android Applications
Evgeniy, thanks for your help.
> You need -eng build because preloading libraries into dalvik vm is not
> allowed in user builds. JellyBean includes several bugfixes in the
> dynamic loader that asan needs.
Do you have the sha1 hashes for any of those patches? I might be able
to track down a build that includes them.
> Was there any useful output in adb logcat when your program
2013 Feb 04
1
[LLVMdev] The future of class2llvm tool
Hello!
Recently I found an interesting tool within java front end of llvm project.
It is "class2llvm".
My future researchs showed that this tool is much out of date and needs a
lot of things to do for its completion.
As far as I understood, It doesn't support even such elementary things as
exceptions handling and garbage collection.
Am I right in my conclusions?
Could you answer
2014 Nov 05
3
[LLVMdev] Using the unused "version" field in the bitcode wrapper (redux)
On Tue, Nov 4, 2014 at 2:57 PM, Chris Lattner <clattner at apple.com> wrote:
>
> On Nov 4, 2014, at 7:04 AM, Robinson, Paul <
> Paul_Robinson at playstation.sony.com> wrote:
>
> >> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of Sean Silva
> >>
> >> You haven't established that you really need