diff options
author | Jeff Law <law@redhat.com> | 2001-08-29 17:23:16 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 2001-08-29 17:23:16 +0000 |
commit | 0a83638b54ee9dd615b9c801a578350db2d393a6 (patch) | |
tree | 5cca3431b13146db8a3441651e08c846be3f52dd /bfd/elf.c | |
parent | 70d0c6e9db0c4718885140d2cb057290fb5c5b8e (diff) | |
download | gdb-0a83638b54ee9dd615b9c801a578350db2d393a6.zip gdb-0a83638b54ee9dd615b9c801a578350db2d393a6.tar.gz gdb-0a83638b54ee9dd615b9c801a578350db2d393a6.tar.bz2 |
* cpu-h8300.c (h8300_scan, compatible): Prototype.
(h8300_scan): Handle architecture:machine encodings typically
found in linker scripts.
* elf.c (prep_headers): Do not try to do H8 machine recognition
here.
* elf32-h8300.c: Add some missing prototypes.
(elf32_h8_mach, elf32_h8_final_write_processing): New functions.
(elf32_h8_object_p): Similarly.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -3452,19 +3452,7 @@ prep_headers (abfd) break; /* Also note that EM_M32, AT&T WE32100 is unknown to bfd. */ case bfd_arch_h8300: - switch (bfd_get_mach (abfd)) - { - default: - case bfd_mach_h8300: - i_ehdrp->e_machine = EM_H8_300; - break; - case bfd_mach_h8300h: - i_ehdrp->e_machine = EM_H8_300H; - break; - case bfd_mach_h8300s: - i_ehdrp->e_machine = EM_H8S; - break; - } + i_ehdrp->e_machine = EM_H8_300; break; case bfd_arch_h8500: i_ehdrp->e_machine = EM_H8_500; |