summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/proc-armv/elf.h
blob: a865dce68682701bb6d80140784bc86e43e22c55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * ELF definitions for 32-bit CPUs
 */

#define ELF_EXEC_PAGESIZE	4096

#ifdef __KERNEL__

/* 32-bit code is always OK.  Some cpus can do 26-bit, some can't.  */
#define ELF_PROC_OK(x)				\
	((! ((x)->e_flags & EF_ARM_APCS26))	\
	|| (elf_hwcap & HWCAP_26BIT))

/* Old NetWinder binaries were compiled in such a way that the iBCS
   heuristic always trips on them.  Until these binaries become uncommon
   enough not to care, don't trust the `ibcs' flag here.  In any case
   there is no other ELF system currently supported by iBCS.
   @@ Could print a warning message to encourage users to upgrade.  */
#define SET_PERSONALITY(ex,ibcs2) \
	current->personality = (ex.e_flags & EF_ARM_APCS26) ? \
	PER_LINUX : PER_LINUX_32BIT

#endif