Srop readelf's unwind decoder from complaining about x86 binaries.
authorNick Clifton <nickc@redhat.com>
Fri, 7 May 2021 14:24:14 +0000 (15:24 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 7 May 2021 14:24:14 +0000 (15:24 +0100)
* readelf.c (no_processor_specific_unwind): New function.
(process_unwind): Use no_processor_specific_unwind for X86
targets.

binutils/ChangeLog
binutils/readelf.c

index 72f69739771864b53077c978efc937045e422e04..3f210a57a53a1768c5dc0eafcdac3336a9efd77e 100644 (file)
@@ -1,3 +1,9 @@
+2021-05-07  Nick Clifton  <nickc@redhat.com>
+
+       * readelf.c (no_processor_specific_unwind): New function.
+       (process_unwind): Use no_processor_specific_unwind for X86
+       targets.
+
 2021-05-07  Michael Forney <mforney@mforney.org>
 
        * dwarf.c: Don't omit second operand of '?' operator.
index e63deaf96363735ffeebb9004bf04f6f53ad802f..cf2011753c8d853792e0763362056f698f17ead0 100644 (file)
@@ -9830,6 +9830,13 @@ arm_process_unwind (Filedata * filedata)
   return res;
 }
 
+static bool
+no_processor_specific_unwind (Filedata * filedata ATTRIBUTE_UNUSED)
+{
+  printf (_("No processor specific unwind information to decode\n"));
+  return true;
+}
+
 static bool
 process_unwind (Filedata * filedata)
 {
@@ -9843,6 +9850,8 @@ process_unwind (Filedata * filedata)
     { EM_IA_64, ia64_process_unwind },
     { EM_PARISC, hppa_process_unwind },
     { EM_TI_C6000, arm_process_unwind },
+    { EM_386, no_processor_specific_unwind },
+    { EM_X86_64, no_processor_specific_unwind },
     { 0, NULL }
   };
   int i;
This page took 0.033922 seconds and 4 git commands to generate.