diff options
author | midipix <writeonce@midipix.org> | 2025-05-30 23:17:35 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2025-05-30 23:44:13 +0000 |
commit | 57ddbe03f41c4fc4686f92734b2aa3a56392815a (patch) | |
tree | 635f1f264223b7a19d70d22918cfc075b591074e /src/output/pe_output_mdso_libraries.c | |
parent | d2434891f37ef9592fa2e6b606d4a4411500d94b (diff) | |
download | perk-57ddbe03f41c4fc4686f92734b2aa3a56392815a.tar.bz2 perk-57ddbe03f41c4fc4686f92734b2aa3a56392815a.tar.xz |
library api: _meta_ (object and image meta data) namespace overhaul.
Diffstat (limited to 'src/output/pe_output_mdso_libraries.c')
-rw-r--r-- | src/output/pe_output_mdso_libraries.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/output/pe_output_mdso_libraries.c b/src/output/pe_output_mdso_libraries.c index c668564..049cd4e 100644 --- a/src/output/pe_output_mdso_libraries.c +++ b/src/output/pe_output_mdso_libraries.c @@ -92,7 +92,7 @@ static char * dsolib_name(const struct pe_image_meta * m, int i) rva = va - m->m_opt.oh_mem.coh_image_base; } - if (pe_get_roffset_from_rva(m,(uint32_t)rva,&roffset) < 0) + if (pe_meta_get_roffset_from_rva(m,(uint32_t)rva,&roffset) < 0) return 0; return (addr = m->r_image.map_addr) + roffset; @@ -117,14 +117,14 @@ static unsigned char * dsosym_meta(const struct pe_image_meta * m, int j) rva = va; } - if ((idx = pe_get_named_section_index(m,MDSO_META_SECTION)) >= 0) - if (idx != pe_get_block_section_index(m,&(struct pe_block){rva,0})) + if ((idx = pe_meta_get_named_section_index(m,MDSO_META_SECTION)) >= 0) + if (idx != pe_meta_get_block_section_index(m,&(struct pe_block){rva,0})) return (unsigned char *)(-1); if (va > rva) return 0; - if (pe_get_roffset_from_rva(m,rva,&roffset) < 0) + if (pe_meta_get_roffset_from_rva(m,rva,&roffset) < 0) return 0; return (unsigned char *)m->r_image.map_addr + roffset; @@ -150,14 +150,14 @@ static char * dsosym_string(const struct pe_image_meta * m, int j) rva = va; } - if ((idx = pe_get_named_section_index(m,MDSO_STRS_SECTION)) >= 0) - if (idx != pe_get_block_section_index(m,&(struct pe_block){rva,0})) + if ((idx = pe_meta_get_named_section_index(m,MDSO_STRS_SECTION)) >= 0) + if (idx != pe_meta_get_block_section_index(m,&(struct pe_block){rva,0})) return (char *)(-2); if (va > rva) return 0; - if (pe_get_roffset_from_rva(m,rva,&roffset) < 0) + if (pe_meta_get_roffset_from_rva(m,rva,&roffset) < 0) return 0; return (addr = m->r_image.map_addr) + roffset; |