diff options
author | Kaushik Phata <Kaushik.Phatak@kpit.com> | 2014-05-16 14:57:10 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2014-05-16 14:57:10 +0100 |
commit | 856ea05ccf051d4d86f422552f5cdfa83659dd6b (patch) | |
tree | 7fb8784ab04e753ddf24d2fc239b5986a4432a38 /binutils | |
parent | 73eb770959c8d8d927dbeafbf6038a651e0cb1ae (diff) | |
download | gdb-856ea05ccf051d4d86f422552f5cdfa83659dd6b.zip gdb-856ea05ccf051d4d86f422552f5cdfa83659dd6b.tar.gz gdb-856ea05ccf051d4d86f422552f5cdfa83659dd6b.tar.bz2 |
This adds support for marking RL78 binaries as either supporting 32-bit
or 64-bit doubles. It also makes the linker complain if the user attempts
to link together binaries with different sized doubles.
* elf32-rl78.c (rl78_elf_merge_private_bfd_data): Complain if
64-bit doubles objects mix with 32-bit doubles objects.
(rl78_elf_print_private_bfd_data): Describe 64-bit doubles flag.
* readelf.c (get_machine_flags): Handle RL78 64-bit doubles flag.
* config/tc-rl78.c (enum options): Add OPTION_32BIT_DOUBLES
and OPTION_64BIT_DOUBLES.
(md_longopts): Add -m32bit-doubles and -m64bit-doubles.
(md_parse_option): Parse -m32bit-doubles and -m64bit-doubles.
(md_show_usage): Show all of the RL78 options.
(rl78_float_cons): New static functions.
(md_pseudo_table): Update handler for "double".
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 4 | ||||
-rw-r--r-- | binutils/readelf.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 922317f..66f2ec1 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2014-05-16 Kaushik Phata <Kaushik.Phatak@kpit.com> + + * readelf.c (get_machine_flags): Handle RL78 64-bit doubles flag. + 2014-05-02 Alan Modra <amodra@gmail.com> * emul_aix.c: Update bfd target vector naming. diff --git a/binutils/readelf.c b/binutils/readelf.c index 9cafd7c..af6463e 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -3009,6 +3009,8 @@ get_machine_flags (unsigned e_flags, unsigned e_machine) case EM_RL78: if (e_flags & E_FLAG_RL78_G10) strcat (buf, ", G10"); + if (e_flags & E_FLAG_RL78_64BIT_DOUBLES) + strcat (buf, ", 64-bit doubles"); break; case EM_RX: |