aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/readelf.c26
2 files changed, 29 insertions, 3 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index c5b52f4..1db49d2 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,9 @@
+2016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
+ Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
+
+ * readelf.c (get_machine_flags): Add support for newer ARC ELF
+ header flags.
+
2016-01-18 Alan Modra <amodra@gmail.com>
* configure: Regenerate.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index f74ef7b..7391334 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -2776,17 +2776,37 @@ get_machine_flags (unsigned e_flags, unsigned e_machine)
case EF_ARC_CPU_ARCV2HS:
strcat (buf, ", ARC HS");
break;
+ case EF_ARC_CPU_GENERIC:
+ strcat (buf, ", ARC generic");
+ break;
+ case E_ARC_MACH_ARC600:
+ strcat (buf, ", ARC600");
+ break;
+ case E_ARC_MACH_ARC601:
+ strcat (buf, ", ARC601");
+ break;
+ case E_ARC_MACH_ARC700:
+ strcat (buf, ", ARC700");
+ break;
default:
- strcat (buf, ", unrecognized flag for ARCv2");
+ strcat (buf, ", unrecognized cpu flag for ARCv2");
break;
}
switch (e_flags & EF_ARC_OSABI_MSK)
{
- /* Only upstream 3.9+ kernels will support ARCv2
- ISA. */
+ case E_ARC_OSABI_ORIG:
+ strcat (buf, ", (ABI:legacy)");
+ break;
+ case E_ARC_OSABI_V2:
+ strcat (buf, ", (ABI:v2)");
+ break;
+ /* Only upstream 3.9+ kernels will support ARCv2 ISA. */
case E_ARC_OSABI_V3:
strcat (buf, ", v3 no-legacy-syscalls ABI");
break;
+ default:
+ strcat (buf, ", unrecognised ARC OSABI flag");
+ break;
}
break;