From c6c98b3833d01c45200708006011e5cecd461fac Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Sat, 2 Dec 2000 01:10:33 +0000 Subject: Add MIPS SB1 machine --- bfd/ChangeLog | 11 +++++++++ bfd/aoutx.h | 1 + bfd/archures.c | 1 + bfd/bfd-in2.h | 1 + bfd/cpu-mips.c | 4 +++- bfd/elf32-mips.c | 7 ++++++ bfd/po/bfd.pot | 72 ++++++++++++++++++++++++++++---------------------------- 7 files changed, 60 insertions(+), 37 deletions(-) (limited to 'bfd') diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f14ff61..1a95e81 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -36,6 +36,17 @@ (_bfd_mips_elf_final_write_processing): Add cases for bfd_mach_mips5 and bfd_mach_mips64. + * bfd/aoutx.h (NAME(aout,machine_type)): Add a + bfd_mach_mips_sb1 case. + * bfd/archures.c (bfd_mach_mips_sb1): New constant. + * bfd/bfd-in2.h (bfd_mach_mips_sb1): New constant. + * bfd/cpu-mips.c (I_sb1): New constant. + (arch_info_struct): Add entry for bfd_mach_mips_sb1. + * bfd/elf32-mips.c (elf_mips_mach): Add case for + E_MIPS_MACH_SB1. + (_bfd_mips_elf_final_write_processing): Add case for + bfd_mach_mips_sb1. + 2000-12-01 Joel Sherrill * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets. diff --git a/bfd/aoutx.h b/bfd/aoutx.h index 246742f..f8612a8 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -780,6 +780,7 @@ NAME(aout,machine_type) (arch, machine, unknown) case bfd_mach_mips32_4k: case bfd_mach_mips5: case bfd_mach_mips64: + case bfd_mach_mips_sb1: /* FIXME: These should be MIPS3, MIPS4, MIPS16, MIPS32, etc. */ arch_flags = M_MIPS2; break; diff --git a/bfd/archures.c b/bfd/archures.c index 1361be9..5bc744a 100644 --- a/bfd/archures.c +++ b/bfd/archures.c @@ -135,6 +135,7 @@ DESCRIPTION .#define bfd_mach_mips32_4k 3204113 {* 32, 04, octal 'K' *} .#define bfd_mach_mips5 5 .#define bfd_mach_mips64 64 +.#define bfd_mach_mips_sb1 12310201 {* octal 'SB', 01 *} . bfd_arch_i386, {* Intel 386 *} .#define bfd_mach_i386_i386 0 .#define bfd_mach_i386_i8086 1 diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 021e762..03794fa 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -1403,6 +1403,7 @@ enum bfd_architecture #define bfd_mach_mips32_4k 3204113 /* 32, 04, octal 'K' */ #define bfd_mach_mips5 5 #define bfd_mach_mips64 64 +#define bfd_mach_mips_sb1 12310201 /* octal 'SB', 01 */ bfd_arch_i386, /* Intel 386 */ #define bfd_mach_i386_i386 0 #define bfd_mach_i386_i8086 1 diff --git a/bfd/cpu-mips.c b/bfd/cpu-mips.c index e2417a1..397e5a9 100644 --- a/bfd/cpu-mips.c +++ b/bfd/cpu-mips.c @@ -59,6 +59,7 @@ enum I_mips32_4k, I_mips5, I_mips64, + I_sb1, }; #define NN(index) (&arch_info_struct[(index) + 1]) @@ -83,7 +84,8 @@ static const bfd_arch_info_type arch_info_struct[] = N (32, 32, bfd_mach_mips32, "mips:mips32", false, NN(I_mips32)), N (32, 32, bfd_mach_mips32_4k,"mips:mips32-4k", false, NN(I_mips32_4k)), N (64, 64, bfd_mach_mips5, "mips:mips5", false, NN(I_mips5)), - N (64, 64, bfd_mach_mips64, "mips:mips64", false, 0), + N (64, 64, bfd_mach_mips64, "mips:mips64", false, NN(I_mips64)), + N (64, 64, bfd_mach_mips_sb1, "mips:sb1", false, 0), }; /* The default architecture is mips:3000, but with a machine number of diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index 4b0b641..edb708a 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -1846,6 +1846,9 @@ elf_mips_mach (flags) case E_MIPS_MACH_MIPS32_4K: return bfd_mach_mips32_4k; + case E_MIPS_MACH_SB1: + return bfd_mach_mips_sb1; + default: switch (flags & EF_MIPS_ARCH) { @@ -2369,6 +2372,10 @@ _bfd_mips_elf_final_write_processing (abfd, linker) case bfd_mach_mips64: val = E_MIPS_ARCH_64; break; + + case bfd_mach_mips_sb1: + val = E_MIPS_ARCH_64 | E_MIPS_MACH_SB1; + break; } elf_elfheader (abfd)->e_flags &= ~(EF_MIPS_ARCH | EF_MIPS_MACH); diff --git a/bfd/po/bfd.pot b/bfd/po/bfd.pot index 0ea2b88..a9392f1 100644 --- a/bfd/po/bfd.pot +++ b/bfd/po/bfd.pot @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-12-01 16:44-0800\n" +"POT-Creation-Date: 2000-12-01 17:03-0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -34,22 +34,22 @@ msgstr "" msgid "%s: Bad relocation record imported: %d" msgstr "" -#: aoutx.h:1258 aoutx.h:1672 +#: aoutx.h:1259 aoutx.h:1673 #, c-format msgid "%s: can not represent section `%s' in a.out object file format" msgstr "" -#: aoutx.h:1642 +#: aoutx.h:1643 #, c-format msgid "" "%s: can not represent section for symbol `%s' in a.out object file format" msgstr "" -#: aoutx.h:1644 +#: aoutx.h:1645 msgid "*unknown*" msgstr "" -#: aoutx.h:3683 +#: aoutx.h:3684 #, c-format msgid "%s: relocateable link from %s to %s not supported" msgstr "" @@ -660,7 +660,7 @@ msgstr "" #. Ignore init flag - it may not be set, despite the flags field #. containing valid data. -#: elf32-arm.h:2195 elf32-cris.c:615 elf32-m68k.c:430 elf32-mips.c:2652 +#: elf32-arm.h:2195 elf32-cris.c:615 elf32-m68k.c:430 elf32-mips.c:2659 #, c-format msgid "private flags = %lx:" msgstr "" @@ -854,132 +854,132 @@ msgstr "" msgid "Linking mips16 objects into %s format is not supported" msgstr "" -#: elf32-mips.c:2539 +#: elf32-mips.c:2546 #, c-format msgid "%s: linking PIC files with non-PIC files" msgstr "" -#: elf32-mips.c:2549 +#: elf32-mips.c:2556 #, c-format msgid "%s: linking abicalls files with non-abicalls files" msgstr "" -#: elf32-mips.c:2578 +#: elf32-mips.c:2585 #, c-format msgid "%s: ISA mismatch (-mips%d) with previous modules (-mips%d)" msgstr "" -#: elf32-mips.c:2587 +#: elf32-mips.c:2594 #, c-format msgid "%s: ISA mismatch (%d) with previous modules (%d)" msgstr "" -#: elf32-mips.c:2610 +#: elf32-mips.c:2617 #, c-format msgid "%s: ABI mismatch: linking %s module with previous %s modules" msgstr "" -#: elf32-mips.c:2624 elf32-ppc.c:1481 elf64-sparc.c:2974 +#: elf32-mips.c:2631 elf32-ppc.c:1481 elf64-sparc.c:2974 #, c-format msgid "%s: uses different e_flags (0x%lx) fields than previous modules (0x%lx)" msgstr "" -#: elf32-mips.c:2655 +#: elf32-mips.c:2662 msgid " [abi=O32]" msgstr "" -#: elf32-mips.c:2657 +#: elf32-mips.c:2664 msgid " [abi=O64]" msgstr "" -#: elf32-mips.c:2659 +#: elf32-mips.c:2666 msgid " [abi=EABI32]" msgstr "" -#: elf32-mips.c:2661 +#: elf32-mips.c:2668 msgid " [abi=EABI64]" msgstr "" -#: elf32-mips.c:2663 +#: elf32-mips.c:2670 msgid " [abi unknown]" msgstr "" -#: elf32-mips.c:2665 +#: elf32-mips.c:2672 msgid " [abi=N32]" msgstr "" -#: elf32-mips.c:2667 +#: elf32-mips.c:2674 msgid " [abi=64]" msgstr "" -#: elf32-mips.c:2669 +#: elf32-mips.c:2676 msgid " [no abi set]" msgstr "" -#: elf32-mips.c:2672 +#: elf32-mips.c:2679 msgid " [mips1]" msgstr "" -#: elf32-mips.c:2674 +#: elf32-mips.c:2681 msgid " [mips2]" msgstr "" -#: elf32-mips.c:2676 +#: elf32-mips.c:2683 msgid " [mips3]" msgstr "" -#: elf32-mips.c:2678 +#: elf32-mips.c:2685 msgid " [mips4]" msgstr "" -#: elf32-mips.c:2680 +#: elf32-mips.c:2687 msgid " [mips5]" msgstr "" -#: elf32-mips.c:2682 +#: elf32-mips.c:2689 msgid " [mips32]" msgstr "" -#: elf32-mips.c:2684 +#: elf32-mips.c:2691 msgid " [mips64]" msgstr "" -#: elf32-mips.c:2686 +#: elf32-mips.c:2693 msgid " [unknown ISA]" msgstr "" -#: elf32-mips.c:2689 +#: elf32-mips.c:2696 msgid " [32bitmode]" msgstr "" -#: elf32-mips.c:2691 +#: elf32-mips.c:2698 msgid " [not 32bitmode]" msgstr "" -#: elf32-mips.c:4340 +#: elf32-mips.c:4347 msgid "static procedure (no name)" msgstr "" -#: elf32-mips.c:4955 elf64-alpha.c:4378 +#: elf32-mips.c:4962 elf64-alpha.c:4378 #, c-format msgid "%s: illegal section name `%s'" msgstr "" -#: elf32-mips.c:5519 +#: elf32-mips.c:5526 msgid "not enough GOT space for local GOT entries" msgstr "" -#: elf32-mips.c:6636 +#: elf32-mips.c:6643 #, c-format msgid "%s: %s+0x%lx: jump to stub routine which is not jal" msgstr "" -#: elf32-mips.c:7623 +#: elf32-mips.c:7630 #, c-format msgid "Malformed reloc detected for section %s" msgstr "" -#: elf32-mips.c:7700 +#: elf32-mips.c:7707 #, c-format msgid "%s: CALL16 reloc at 0x%lx not against global symbol" msgstr "" -- cgit v1.1