Sfoglia il codice sorgente

Try `fde-gnu-eh-frame-hdr` before `fde-phdr`.

Dan Gohman 3 anni fa
parent
commit
a672291e9b
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      src/unwinder/find_fde/mod.rs

+ 4 - 4
src/unwinder/find_fde/mod.rs

@@ -29,6 +29,10 @@ impl FDEFinder for GlobalFinder {
         if let Some(v) = registry::get_finder().find_fde(pc) {
             return Some(v);
         }
+        #[cfg(feature = "fde-gnu-eh-frame-hdr")]
+        if let Some(v) = gnu_eh_frame_hdr::get_finder().find_fde(pc) {
+            return Some(v);
+        }
         #[cfg(feature = "fde-phdr")]
         if let Some(v) = phdr::get_finder().find_fde(pc) {
             return Some(v);
@@ -37,10 +41,6 @@ impl FDEFinder for GlobalFinder {
         if let Some(v) = fixed::get_finder().find_fde(pc) {
             return Some(v);
         }
-        #[cfg(feature = "fde-gnu-eh-frame-hdr")]
-        if let Some(v) = gnu_eh_frame_hdr::get_finder().find_fde(pc) {
-            return Some(v);
-        }
         None
     }
 }