Questions tagged [eabi]

Relating to ARM, MIPS, PowerPC, etc EABI calling conventions and interoperability. Tag with architecture as well.

ABI stands for Application Binary interface. EABI is for embedded use. The ABI covers calling conventions, data alignments, OS call formats and often language and tool interoperability issues.

In the context of ARM Linux, a system call convention change was made. This is typically an OABI versus EABI.

The ABI effects code generation of compilers and can relate to threading, floating point, stack traces, shared libraries and stack overflows.

See also:

79 questions
1
vote
1 answer

Android source build arm-eabi-gcc not found

When building android source I get the error arm-eabi-gcc not found in path. I downloaded the prebuilt binaries from the android website and added the bin directory in my path. I've ensured arm-eabi-gcc is in path. Is there a solution for this?
gingerdev
  • 143
  • 1
  • 10
1
vote
0 answers

How to change size of the segment .text for file ELF ARM EABI?

I have ELF ARM EABI file without sources. It binary .so file. How to expand size of the segment .text of the file? I know this break code in this binary, but it is not a problem now.
Enyby
  • 4,162
  • 2
  • 33
  • 42
1
vote
1 answer

ARM Cortex-M heap alignment

After being bitten by stack alignment problems I started wondering whether the heap should be aligned to 8-octet boundaries, as well. The ARM Cortex EABI states that for all calls to external functions the stack has to be 8-aligned. I could not find…
DrV
  • 22,637
  • 7
  • 60
  • 72
1
vote
0 answers

Can I use objcopy to convert a library from one ARM architecture to another?

I have to use a library that was precompiled for an ARM Cortex M4 in a project with an ARM Cortex A8. The linker naturally gives me an error: file "..." has a Tag_CPU_arch_profile attribute value of "77" that is different than one previously seen…
TM_
  • 21
  • 8
1
vote
0 answers

Eclipse CDT with GNU ARM EABI

I have built an environment. I tend to get the file format not recognized while linking. I have enabled the verbose please let me know if anyone has an answer for this. 01:14:38 ** Build of configuration Debug for project testerr ** make -j all…
rakesh
  • 975
  • 2
  • 11
  • 15
1
vote
1 answer

Linking hard float to softfp bad performance

I'm writing c++ code to run on ARM cortex a9 CPU. My code links to a closed source 3rd party library which is compiled with soft-float. I'm running a cortex-a9 ARM cpu. I noticed that if I compile my code with gcc flag -mfloat-abi=softfp, it runs…
oferlivny
  • 300
  • 4
  • 15
1
vote
1 answer

memcpy() instruction in ARM EABI compiler explanation

I am using the memcpy() function using the ARM EABI compiler. As I see in the file, the function is defined as extern _ARMABI void *memcpy(void * __restrict /*s1*/, const void * __restrict /*s2*/, size_t /*n*/) …
Kashif Nawaz
  • 95
  • 1
  • 1
  • 13
1
vote
1 answer

GCC (Sourcery codebench 2013.11) link time optimization ignoring -fno-short-enums

I have two trivial source files obj1.cc: int x(int y) { return y - 10; } obj2.cc: int foo(int bar) { return bar*10; } I am using Sourcery codebench lite 2013.11: $ arm-none-eabi-g++ --version arm-none-eabi-g++.exe (Sourcery CodeBench…
Bobby Moretti
  • 717
  • 1
  • 6
  • 17
1
vote
0 answers

Compile a C program for an embedded system if the toolchain is unknown

I have a C program which I want to benchmark on an (old) custom embedded platform. The problem is that I only have the hardware but not the toolchain to compile programs for this platform. The CPU is an Atmel AT91SAM9260 (ARM) and runs an embedded…
user3226575
  • 107
  • 1
  • 7
1
vote
1 answer

__attribute__ optimize, specifying multiple flags, and failing code at different -O levels

I have some code that is being compiled with GCC for a micro. I noticed that when compiling the debug build, the system works just fine. But when I compile the release build, the system does not boot up. After working on the issue for awhile, I…
Mike Gibson
  • 342
  • 1
  • 3
  • 14
1
vote
0 answers

Statically measuring the maximum stack memory required for a method in C

I have a large number of methods written in C spread across multiple files and all of them create local variables (mostly structure instances). After compiling these with ARM EABI GCC compiler on Windows, I try to examine the .o object files using…
Elroy
  • 167
  • 1
  • 8
1
vote
1 answer

How to use static library generated by gnu C/C++ tools for arm with Microsoft C/C++ tools for arm

I have a static library (.a) generated by the GNU tools for ARM on Linux enviromnent and want to use this library in Windows environment (Visual Studio 2008) using the Microsoft tools for ARM architecture. Is there any way to use .a static library…
user2463118
  • 51
  • 1
  • 4
1
vote
2 answers

ARM - How to preserve r9 register with armcc

Reading ARM AAPCS (ARM EABI), I've found : The role of register r9 is platform specific. A virtual platform may assign any role to this register and must document this usage. For example, it may designate it as the static base (SB) in a…
1
vote
1 answer

ARM EABI toolchain

Today, I faced some weird issue with ARM toolchain EABI (cross-compiler). Ths issue is when i try to use snwprintf() for converting floating point value to string , i was getting some junk string which does not have actual floating point value that…
Santhosh
  • 637
  • 1
  • 7
  • 19
0
votes
0 answers

Valgrind Shows 64 Bit on 32 Bit Raspberry Pi

I am cross-compiling a C / C++ application to run on a Raspberry Pi 4 with the arm-rpi-4.9.3-linux-gnueabihf compiler from the Tools Github Repository on an x64 Debian Linux system running in a VM. I am having some issues with this application so I…
FooAnon
  • 566
  • 1
  • 4
  • 11