Hi Tomi,
> The prologue problem was fixed by adding "morestack: false," to the
> linux ARM target specification, similar to how it is in the iOS
> target.
Right, my bad, that should be enough.
> My device does not really benefit from the segmented stack, since it
> has only 64MB RAM
Segm
FWIW, we're just disabling segmented stack in zinc for now exactly because
of the same problem. I have a patch for llvm but I didn't really push it
upstream hard enough.
On Tue, Dec 30, 2014 at 11:23 AM, Valerii Hiora
wrote:
> Hi Tomi,
>
> > Anyone have any idea if that's a larger problem, or si
> - Rust - can be relatively easy fixed by providing (or patching) a
> target and marking it as a target which doesn't support segmented
> stacks, see example [1]
> - LLVM - as I remember some time ago LLVM generated a function
> prologue which uses the same instruction for any ARM device
The pro
Hi Tomi,
> Anyone have any idea if that's a larger problem, or simply something
> nobody has written the small handcoded ASMs needed for ARMv5 or v4?
> If latter, I might be able to wrap my head around this.
The problem you've got is related to segmented stack support. It need
fix on 2 levels:
So far my best guess is that the problem is the Assmebly line
mrc 15, 0, r4, cr13, cr0, {3}
in main, which means that it's trying to read from coprocessor 15,
register 13, part 3. According to
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0360e/CACEAIHG.html
that's a thread I
> In the past when I've seen this error, it's because your C cross
> toolchain is built for a slightly wrong architecture. Can you verify
> that C programs cross compiled with your cross-gcc work correctly?
Christmas is over, back to work. C works fine just by calling
arm-linux-gnueabi-gcc. I hadn
Tomi Pieviläinen wrote:
> --target=arm-unknown-linux-gnueabi hello.rs`, but trying to run the
> binary on the device just gives me "Illegal instruction".
In the past when I've seen this error, it's because your C cross
toolchain is built for a slightly wrong architecture. Can you verify
that C pr
Hi,
I'm trying to get cross compilation to Sitara AM1808 (Lego Mindstorms
EV3) working, but haven't been able to get working binaries.
First I simply tried compiling with `rustc
--target=arm-unknown-linux-gnueabi`, but got errors with missing std.
So next I compiled rust from source with `config