From 5177500f26e1fc3127c607f72bd2dfbffb9165b3 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 23 Jan 2003 18:50:57 +0000 Subject: Add SH2E support --- include/elf/ChangeLog | 12 ++++++++++++ include/elf/sh.h | 8 ++++++++ 2 files changed, 20 insertions(+) (limited to 'include') diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index 110a72b..86dc455 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,15 @@ +2003-01-23 Nick Clifton + + * Add sh2e support: + + 2002-04-02 Alexandre Oliva + + * sh.h (EF_SH_MERGE_MACH): Handle SH2E. + + 2002-04-02 Elena Zannoni + + * sh.h (EF_SH2E): New. + 2003-01-23 Alan Modra * sh.h: Split out various bits to bfd/elf32-sh64.h. diff --git a/include/elf/sh.h b/include/elf/sh.h index dd19b76..41bf0bf 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 \ -- cgit v1.1