diff options
author | Jason Thorpe <thorpej@netbsd.org> | 2002-02-13 18:14:48 +0000 |
---|---|---|
committer | Jason Thorpe <thorpej@netbsd.org> | 2002-02-13 18:14:48 +0000 |
commit | 76f57f3aaa745f1dbb24496feb91ee18be5cfe17 (patch) | |
tree | ac01c3c08b663878934c28d7b76b87d5b6372ac1 | |
parent | 78b4f46824bf1fc873b17528ca434b420f12a36a (diff) | |
download | gdb-76f57f3aaa745f1dbb24496feb91ee18be5cfe17.zip gdb-76f57f3aaa745f1dbb24496feb91ee18be5cfe17.tar.gz gdb-76f57f3aaa745f1dbb24496feb91ee18be5cfe17.tar.bz2 |
bfd:
2002-02-13 Matt Fredette <fredette@netbsd.org>
* elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
EF_M68000.
bintuls:
2002-02-13 Matt Fredette <fredette@netbsd.org>
* readelf.c (get_machine_flags): Recognize EF_M68000.
gas:
2002-02-13 Matt Fredette <fredette@netbsd.org>
* config/tc-m68k.c (md_show_usage): No longer display a
hard-coded "68020" for the default CPU, instead display the
canonical name of the true, configured default CPU.
(m68k_elf_final_processing): Mark objects for sub-68020
CPUs with the new EF_M68000 flag.
include/elf:
2002-02-13 Matt Fredette <fredette@netbsd.org>
* m68k.h (EF_M68000): Define.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-m68k.c | 3 | ||||
-rw-r--r-- | binutils/ChangeLog | 4 | ||||
-rw-r--r-- | binutils/readelf.c | 2 | ||||
-rw-r--r-- | gas/ChangeLog | 8 | ||||
-rw-r--r-- | gas/config/tc-m68k.c | 31 | ||||
-rw-r--r-- | include/elf/ChangeLog | 4 | ||||
-rw-r--r-- | include/elf/m68k.h | 1 |
8 files changed, 56 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c4ee9c5..4b7640e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-02-17 Matt Fredette <fredette@netbsd.org> + + * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize + EF_M68000. + 2002-02-13 Nick Clifton <nickc@cambridge.redhat.com> * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on diff --git a/bfd/elf32-m68k.c b/bfd/elf32-m68k.c index c3e4c93c..ab7ab45 100644 --- a/bfd/elf32-m68k.c +++ b/bfd/elf32-m68k.c @@ -412,6 +412,9 @@ elf32_m68k_print_private_bfd_data (abfd, ptr) if (elf_elfheader (abfd)->e_flags & EF_CPU32) fprintf (file, _(" [cpu32]")); + if (elf_elfheader (abfd)->e_flags & EF_M68000) + fprintf (file, _ (" [m68000]")); + fputc ('\n', file); return true; diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 508f632..a5789c4 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2002-02-13 Matt Fredette <fredette@netbsd.org> + + * readelf.c (get_machine_flags): Recognize EF_M68000. + 2002-02-12 Alexandre Oliva <aoliva@redhat.com> * MAINTAINERS: Added self as MN10300 co-maintainer. diff --git a/binutils/readelf.c b/binutils/readelf.c index 0c95f05..3bd67ba 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -1641,6 +1641,8 @@ get_machine_flags (e_flags, e_machine) case EM_68K: if (e_flags & EF_CPU32) strcat (buf, ", cpu32"); + if (e_flags & EF_M68000) + strcat (buf, ", m68000"); break; case EM_PPC: diff --git a/gas/ChangeLog b/gas/ChangeLog index 80f907e..7c1608a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,11 @@ +2002-02-13 Matt Fredette <fredette@netbsd.org> + + * config/tc-m68k.c (md_show_usage): No longer display a + hard-coded "68020" for the default CPU, instead display the + canonical name of the true, configured default CPU. + (m68k_elf_final_processing): Mark objects for sub-68020 + CPUs with the new EF_M68000 flag. + 2002-02-13 Andreas Schwab <schwab@suse.de> * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c index ef5f845..aeb72ce 100644 --- a/gas/config/tc-m68k.c +++ b/gas/config/tc-m68k.c @@ -6916,16 +6916,40 @@ void md_show_usage (stream) FILE *stream; { + const char *default_cpu = TARGET_CPU; + int default_arch, i; + + /* Get the canonical name for the default target CPU. */ + if (*default_cpu == 'm') + default_cpu++; + for (i = 0; i < n_archs; i++) + { + if (strcasecmp (default_cpu, archs[i].name) == 0) + { + default_arch = archs[i].arch; + for (i = 0; i < n_archs; i++) + { + if (archs[i].arch == default_arch + && !archs[i].alias) + { + default_cpu = archs[i].name; + break; + } + } + } + } + fprintf (stream, _("\ 680X0 options:\n\ -l use 1 word for refs to undefined symbols [default 2]\n\ -m68000 | -m68008 | -m68010 | -m68020 | -m68030 | -m68040 | -m68060 |\n\ -m68302 | -m68331 | -m68332 | -m68333 | -m68340 | -m68360 | -mcpu32 |\n\ -m5200 | -m5202 | -m5204 | -m5206 | -m5206e | -m5307 | -m5407\n\ - specify variant of 680X0 architecture [default 68020]\n\ + specify variant of 680X0 architecture [default %s]\n\ -m68881 | -m68882 | -mno-68881 | -mno-68882\n\ target has/lacks floating-point coprocessor\n\ - [default yes for 68020, 68030, and cpu32]\n")); + [default yes for 68020, 68030, and cpu32]\n"), + default_cpu); fprintf (stream, _("\ -m68851 | -mno-68851\n\ target has/lacks memory-management unit coprocessor\n\ @@ -7118,5 +7142,8 @@ void m68k_elf_final_processing() /* Set file-specific flags if this is a cpu32 processor */ if (cpu_of_arch (current_architecture) & cpu32) elf_elfheader (stdoutput)->e_flags |= EF_CPU32; + else if ((cpu_of_arch (current_architecture) & m68000up) + && !(cpu_of_arch (current_architecture) & m68020up)) + elf_elfheader (stdoutput)->e_flags |= EF_M68000; } #endif diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog index f0e04db..e70f7fd 100644 --- a/include/elf/ChangeLog +++ b/include/elf/ChangeLog @@ -1,3 +1,7 @@ +2002-02-13 Matt Fredette <fredette@netbsd.org> + + * m68k.h (EF_M68000): Define. + 2002-02-12 Alan Modra <amodra@bigpond.net.au> * ppc.h (DT_PPC64_OPD, DT_PPC64_OPDSZ): Define. diff --git a/include/elf/m68k.h b/include/elf/m68k.h index 03bf465..7769c59 100644 --- a/include/elf/m68k.h +++ b/include/elf/m68k.h @@ -53,5 +53,6 @@ START_RELOC_NUMBERS (elf_m68k_reloc_type) END_RELOC_NUMBERS (R_68K_max) #define EF_CPU32 0x00810000 +#define EF_M68000 0x01000000 #endif |