diff options
author | Dmitry Safonov <0x7f454c46@gmail.com> | 2019-05-29 19:15:09 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2019-09-07 15:59:52 +0300 |
commit | 934a050788bd9b508ae22441f434a93d23e8ac10 (patch) | |
tree | fc15188617edd0d4fef35baa9d4b39077af36344 /include | |
parent | a856c48e7756ba4f6f2cf5a2e14efadc413e3368 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/common/arch/arm/asm/linkage.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/common/arch/arm/asm/linkage.h b/include/common/arch/arm/asm/linkage.h index 738064233..a93898be5 100644 --- a/include/common/arch/arm/asm/linkage.h +++ b/include/common/arch/arm/asm/linkage.h @@ -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__ */ |