From 4046d87a365240eed765f315f37b9bb64f208892 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 9 Aug 2013 10:40:04 +0000 Subject: * elf32-rl78.c (rl78_elf_merge_private_bfd_data): Complain if G10 flag bits do not match. (rl78_elf_print_private_bfd_data): Describe G10 flag. * readelf.c (get_machine_flags): Handle RL78 G10 flag. * config/tc-rl78.c (elf_flags): New variable. (enum options): Add OPTION_G10. (md_longopts): Add mg10. (md_parse_option): Parse -mg10. (rl78_elf_final_processing): New function. * config/tc-rl78.c (tc_final_processing): Define. * doc/c-rl78.texi: Document -mg10 option. * rl78.c (E_FLAG_RL78_G10): Define. * lib/ld-lib.exp (check_shared_lib_support): Note that the RL78 does not support shared library generation. --- binutils/readelf.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'binutils/readelf.c') diff --git a/binutils/readelf.c b/binutils/readelf.c index b6c2a39..2dd1d8b 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -2779,6 +2779,11 @@ get_machine_flags (unsigned e_flags, unsigned e_machine) strcat (buf, ", G-Float"); break; + case EM_RL78: + if (e_flags & E_FLAG_RL78_G10) + strcat (buf, ", G10"); + break; + case EM_RX: if (e_flags & E_FLAG_RX_64BIT_DOUBLES) strcat (buf, ", 64-bit doubles"); -- cgit v1.1