Skip to content
Snippets Groups Projects
Commit ac88013a authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

did endian detection for API change to libehp

parent a189207e
No related branches found
No related tags found
No related merge requests found
......@@ -572,9 +572,15 @@ split_eh_frame_impl_t<ptrsize>::split_eh_frame_impl_t(FileIR_t* p_firp)
eh_frame_hdr_scoop=lookup_scoop_by_name(".eh_frame_hdr");
gcc_except_table_scoop=lookup_scoop_by_name(".gcc_except_table");
const auto endian_type =
firp->getArchitecture()->getMachineType() == admtMips32 ? EHP::BIG :
EHP::LITTLE;
eh_frame_parser=EHFrameParser_t::factory
(
ptrsize,
endian_type,
scoop_contents(eh_frame_scoop), scoop_address(eh_frame_scoop),
scoop_contents(eh_frame_hdr_scoop), scoop_address(eh_frame_hdr_scoop),
scoop_contents(gcc_except_table_scoop), scoop_address(gcc_except_table_scoop)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment