arm: Provide aeabi helpers in ARM format

We're building PIEs in arm format rather than in thumb.
Copy helpers from libgcc, provide a proper define and
link them into blobs.

Also substitute tabs by spaces, how it should have been
in pie/Makefile - tabs are for recipes.

Fixes:
  LINK     criu/pie/parasite.built-in.o
criu/pie/pie.lib.a(util-vdso.o): In function `elf_hash':
/criu/criu/pie/util-vdso.c:61: undefined reference to `__aeabi_uidivmod'
/criu/scripts/nmk/scripts/build.mk:209: recipe for target 'criu/pie/parasite.built-in.o' failed

Signed-off-by: Dmitry Safonov <0x7f454c46@gmail.com>
This commit is contained in:
Dmitry Safonov 2019-05-29 17:15:09 +01:00 committed by Andrei Vagin
parent a856c48e77
commit 934a050788
5 changed files with 106 additions and 188 deletions

View file

@ -19,6 +19,10 @@
#define END(sym) \
.size sym, . - sym
#define ALIAS(sym_new, sym_old) \
.globl sym_new; \
.set sym_new, sym_old
#endif /* __ASSEMBLY__ */
#endif /* __CR_LINKAGE_H__ */