MIPS: ELF: Deconditionalise ABI flags definitions
Move the `mips_elf_abiflags_v0' structure and FP ABI flag macros outside #ifndef ELF_ARCH. These are public interfaces. Signed-off-by: Maciej W. Rozycki <macro@imgtec.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/13243/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
4b62fad50e
commit
de704161aa
1 changed files with 18 additions and 18 deletions
|
@ -175,16 +175,14 @@
|
||||||
#define SHF_MIPS_NAMES 0x02000000
|
#define SHF_MIPS_NAMES 0x02000000
|
||||||
#define SHF_MIPS_NODUPES 0x01000000
|
#define SHF_MIPS_NODUPES 0x01000000
|
||||||
|
|
||||||
#ifndef ELF_ARCH
|
#define MIPS_ABI_FP_ANY 0 /* FP ABI doesn't matter */
|
||||||
/* ELF register definitions */
|
#define MIPS_ABI_FP_DOUBLE 1 /* -mdouble-float */
|
||||||
#define ELF_NGREG 45
|
#define MIPS_ABI_FP_SINGLE 2 /* -msingle-float */
|
||||||
#define ELF_NFPREG 33
|
#define MIPS_ABI_FP_SOFT 3 /* -msoft-float */
|
||||||
|
#define MIPS_ABI_FP_OLD_64 4 /* -mips32r2 -mfp64 */
|
||||||
typedef unsigned long elf_greg_t;
|
#define MIPS_ABI_FP_XX 5 /* -mfpxx */
|
||||||
typedef elf_greg_t elf_gregset_t[ELF_NGREG];
|
#define MIPS_ABI_FP_64 6 /* -mips32r2 -mfp64 */
|
||||||
|
#define MIPS_ABI_FP_64A 7 /* -mips32r2 -mfp64 -mno-odd-spreg */
|
||||||
typedef double elf_fpreg_t;
|
|
||||||
typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
|
|
||||||
|
|
||||||
struct mips_elf_abiflags_v0 {
|
struct mips_elf_abiflags_v0 {
|
||||||
uint16_t version; /* Version of flags structure */
|
uint16_t version; /* Version of flags structure */
|
||||||
|
@ -201,14 +199,16 @@ struct mips_elf_abiflags_v0 {
|
||||||
uint32_t flags2;
|
uint32_t flags2;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MIPS_ABI_FP_ANY 0 /* FP ABI doesn't matter */
|
#ifndef ELF_ARCH
|
||||||
#define MIPS_ABI_FP_DOUBLE 1 /* -mdouble-float */
|
/* ELF register definitions */
|
||||||
#define MIPS_ABI_FP_SINGLE 2 /* -msingle-float */
|
#define ELF_NGREG 45
|
||||||
#define MIPS_ABI_FP_SOFT 3 /* -msoft-float */
|
#define ELF_NFPREG 33
|
||||||
#define MIPS_ABI_FP_OLD_64 4 /* -mips32r2 -mfp64 */
|
|
||||||
#define MIPS_ABI_FP_XX 5 /* -mfpxx */
|
typedef unsigned long elf_greg_t;
|
||||||
#define MIPS_ABI_FP_64 6 /* -mips32r2 -mfp64 */
|
typedef elf_greg_t elf_gregset_t[ELF_NGREG];
|
||||||
#define MIPS_ABI_FP_64A 7 /* -mips32r2 -mfp64 -mno-odd-spreg */
|
|
||||||
|
typedef double elf_fpreg_t;
|
||||||
|
typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
|
||||||
|
|
||||||
#ifdef CONFIG_32BIT
|
#ifdef CONFIG_32BIT
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue