From 85fbca6a4f46e23f3ebb7761821694b358e253b5 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 6 Jul 2004 16:58:43 +0000 Subject: Add support for sh-symbian-elf target --- gas/ChangeLog | 7 +++++++ gas/config.in | 3 +++ gas/config/tc-sh.h | 2 ++ gas/configure | 7 +++++++ gas/configure.in | 3 +++ 5 files changed, 22 insertions(+) (limited to 'gas') diff --git a/gas/ChangeLog b/gas/ChangeLog index a7b174e..48042bb 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,12 @@ 2004-07-06 Nick Clifton + * config.in: Undefine TARGET_SYMBIAN by default. + * configure.in: + * configure: Regenerate. Add sh-symbian-elf target. If + selected define TARGET_SYMBIAN. + * config/tc-sh.h (TARGET_FORMAT): Select a Symbian target + format if TARGET_SYMBIAN has been defined. + * output-file.c (output_file_create): Report the target format chosen when bfd_openw reports that it is invalid. diff --git a/gas/config.in b/gas/config.in index 5776361..d124077 100644 --- a/gas/config.in +++ b/gas/config.in @@ -275,6 +275,9 @@ /* Define if default target is PowerPC Solaris. */ #undef TARGET_SOLARIS_COMMENT +/* Define if target is Symbian OS. */ +#undef TARGET_SYMBIAN + /* Target vendor. */ #undef TARGET_VENDOR diff --git a/gas/config/tc-sh.h b/gas/config/tc-sh.h index 9931847..acf1649 100644 --- a/gas/config/tc-sh.h +++ b/gas/config/tc-sh.h @@ -189,6 +189,8 @@ extern int target_big_endian; #define TARGET_FORMAT (!target_big_endian ? "elf32-sh-linux" : "elf32-shbig-linux") #elif defined(TE_NetBSD) #define TARGET_FORMAT (!target_big_endian ? "elf32-shl-nbsd" : "elf32-sh-nbsd") +#elif defined TARGET_SYMBIAN +#define TARGET_FORMAT (!target_big_endian ? "elf32-shl-symbian" : "elf32-sh-symbian") #else #define TARGET_FORMAT (!target_big_endian ? "elf32-shl" : "elf32-sh") #endif diff --git a/gas/configure b/gas/configure index 1f83fbf..668df15 100755 --- a/gas/configure +++ b/gas/configure @@ -4504,6 +4504,13 @@ echo "$as_me: error: Solaris must be configured little endian" >&2;} sh5*-*-netbsd*) fmt=elf em=nbsd ;; sh64*-*-netbsd*) fmt=elf em=nbsd ;; sh*-*-netbsdelf*) fmt=elf em=nbsd ;; + sh*-symbian-elf*) fmt=elf endian=little + +cat >>confdefs.h <<\_ACEOF +#define TARGET_SYMBIAN 1 +_ACEOF + + ;; sh-*-elf*) fmt=elf ;; sh-*-coff*) fmt=coff ;; sh-*-nto*) fmt=elf ;; diff --git a/gas/configure.in b/gas/configure.in index ab6460c..10e3648 100644 --- a/gas/configure.in +++ b/gas/configure.in @@ -448,6 +448,9 @@ changequote([,])dnl sh5*-*-netbsd*) fmt=elf em=nbsd ;; sh64*-*-netbsd*) fmt=elf em=nbsd ;; sh*-*-netbsdelf*) fmt=elf em=nbsd ;; + sh*-symbian-elf*) fmt=elf endian=little + AC_DEFINE(TARGET_SYMBIAN, 1, [Define if target is Symbian OS.]) + ;; sh-*-elf*) fmt=elf ;; sh-*-coff*) fmt=coff ;; sh-*-nto*) fmt=elf ;; -- cgit v1.1