OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-arm/] [proc-armv/] [elf.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1276 phoenix
/*
2
 * ELF definitions for 32-bit CPUs
3
 */
4
 
5
#define ELF_EXEC_PAGESIZE       4096
6
 
7
#ifdef __KERNEL__
8
 
9
/*
10
 * 32-bit code is always OK.  Some cpus can do 26-bit, some can't.
11
 */
12
#define ELF_PROC_OK(x)                                                   \
13
        (( (elf_hwcap & HWCAP_THUMB) && ((x)->e_entry & 1) == 1)      || \
14
         (!(elf_hwcap & HWCAP_THUMB) && ((x)->e_entry & 3) == 0)      || \
15
         ( (elf_hwcap & HWCAP_26BIT) && (x)->e_flags & EF_ARM_APCS26) || \
16
         ((x)->e_flags & EF_ARM_APCS26) == 0)
17
 
18
/* Old NetWinder binaries were compiled in such a way that the iBCS
19
   heuristic always trips on them.  Until these binaries become uncommon
20
   enough not to care, don't trust the `ibcs' flag here.  In any case
21
   there is no other ELF system currently supported by iBCS.
22
   @@ Could print a warning message to encourage users to upgrade.  */
23
#define SET_PERSONALITY(ex,ibcs2) \
24
        set_personality(((ex).e_flags&EF_ARM_APCS26 ?PER_LINUX :PER_LINUX_32BIT))
25
 
26
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.