diff options
author | Nick Clifton <nickc@redhat.com> | 2003-01-23 18:50:57 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2003-01-23 18:50:57 +0000 |
commit | 87f4f0ab32be9cb56c851a4fdaa64aec7c2e9408 (patch) | |
tree | 19c4b8b6ea0b25a4c3d9978652aeb174b961b7fc /include/elf/sh.h | |
parent | ba6064d7f8568c96862ff4e42b42ac06f55199a4 (diff) | |
download | cygnal-87f4f0ab32be9cb56c851a4fdaa64aec7c2e9408.tar.gz cygnal-87f4f0ab32be9cb56c851a4fdaa64aec7c2e9408.tar.bz2 cygnal-87f4f0ab32be9cb56c851a4fdaa64aec7c2e9408.zip |
Add SH2E support
Diffstat (limited to 'include/elf/sh.h')
-rw-r--r-- | include/elf/sh.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/elf/sh.h b/include/elf/sh.h index dd19b765f..41bf0bf69 100644 --- a/include/elf/sh.h +++ b/include/elf/sh.h @@ -33,6 +33,7 @@ #define EF_SH_HAS_FP(flags) ((flags) & 8) #define EF_SH3E 8 #define EF_SH4 9 +#define EF_SH2E 11 /* This one can only mix in objects from other EF_SH5 objects. */ #define EF_SH5 10 @@ -45,6 +46,13 @@ : (((mach1) < EF_SH3 && (mach2) == EF_SH_UNKNOWN) \ || ((mach2) < EF_SH3 && (mach1) == EF_SH_UNKNOWN)) \ ? EF_SH3 \ + : ((mach1) == EF_SH2E && EF_SH_HAS_FP (mach2)) \ + ? (mach2) \ + : ((mach2) == EF_SH2E && EF_SH_HAS_FP (mach1)) \ + ? (mach1) \ + : (((mach1) == EF_SH2E && (mach2) == EF_SH_UNKNOWN) \ + || ((mach2) == EF_SH2E && (mach1) == EF_SH_UNKNOWN)) \ + ? EF_SH2E \ : (((mach1) == EF_SH3E && (mach2) == EF_SH_UNKNOWN) \ || ((mach2) == EF_SH3E && (mach1) == EF_SH_UNKNOWN)) \ ? EF_SH4 \ |