diff options
author | Michael Snyder <msnyder@vmware.com> | 2003-05-16 23:39:24 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2003-05-16 23:39:24 +0000 |
commit | 5d1db417cabc9c212b1e149eeb8cac486e8264bd (patch) | |
tree | a93a5d020cd89bdea443db4c5152138082a5c132 /bfd/elf32-h8300.c | |
parent | cf662e211d1a0312f56370b1fe624ea8f4217311 (diff) | |
download | gdb-5d1db417cabc9c212b1e149eeb8cac486e8264bd.zip gdb-5d1db417cabc9c212b1e149eeb8cac486e8264bd.tar.gz gdb-5d1db417cabc9c212b1e149eeb8cac486e8264bd.tar.bz2 |
2003-05-16 Michael Snyder <msnyder@redhat.com>
From Bernd Schmidt <bernds@redhat.com>
* archures.c (bfd_mach_h8300sx): New.
* bfd-in2.h: Regenerate.
* cpu-h8300.c (h8300_scan)): Add support for h8300sx.
(h8300sx_info_struct): New.
(h8300s_info_struct): Link to it.
* elf32-h8300.c (elf32_h8_mach): Add support for h8300sx.
(elf32_h8_final_write_processing): Likewise.
(elf32_h8_relax_section): Likewise.
Diffstat (limited to 'bfd/elf32-h8300.c')
-rw-r--r-- | bfd/elf32-h8300.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/bfd/elf32-h8300.c b/bfd/elf32-h8300.c index 5a26fbd..f272dc8 100644 --- a/bfd/elf32-h8300.c +++ b/bfd/elf32-h8300.c @@ -579,6 +579,9 @@ elf32_h8_mach (flags) case E_H8_MACH_H8300SN: return bfd_mach_h8300sn; + + case E_H8_MACH_H8300SX: + return bfd_mach_h8300sx; } } @@ -615,6 +618,10 @@ elf32_h8_final_write_processing (abfd, linker) case bfd_mach_h8300sn: val = E_H8_MACH_H8300SN; break; + + case bfd_mach_h8300sx: + val = E_H8_MACH_H8300SX; + break; } elf_elfheader (abfd)->e_flags &= ~ (EF_H8_MACH); @@ -1023,7 +1030,10 @@ elf32_h8_relax_section (abfd, sec, link_info, again) && value >= 0xff00 && value <= 0xffff) || ((bfd_get_mach (abfd) == bfd_mach_h8300h - || bfd_get_mach (abfd) == bfd_mach_h8300s) + /* FIXME: h8300hn? */ + || bfd_get_mach (abfd) == bfd_mach_h8300s + /* FIXME: h8300sn? */ + || bfd_get_mach (abfd) == bfd_mach_h8300sx) && value >= 0xffff00 && value <= 0xffffff)) { @@ -1081,7 +1091,10 @@ elf32_h8_relax_section (abfd, sec, link_info, again) && value >= 0xff00 && value <= 0xffff) || ((bfd_get_mach (abfd) == bfd_mach_h8300h - || bfd_get_mach (abfd) == bfd_mach_h8300s) + /* FIXME: h8300hn? */ + || bfd_get_mach (abfd) == bfd_mach_h8300s + /* FIXME: h8300sn? */ + || bfd_get_mach (abfd) == bfd_mach_h8300sx) && value >= 0xffff00 && value <= 0xffffff)) { |