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

This commit is contained in:
Dan Gohman 2021-10-02 11:05:17 -07:00
parent c40a114e23
commit a672291e9b

View File

@ -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
}
}