diff options
author | midipix <writeonce@midipix.org> | 2017-02-04 21:55:37 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2017-02-05 18:42:15 -0500 |
commit | 97d39b6755a05b2405051ff852b4c845b379bb05 (patch) | |
tree | b3ef81ea018d09dfa4cd25f5e8f65e410f55218d /include | |
parent | 5c48f617d99f6d4788bed5fb6d52a31de7c534ae (diff) | |
download | mdso-97d39b6755a05b2405051ff852b4c845b379bb05.tar.bz2 mdso-97d39b6755a05b2405051ff852b4c845b379bb05.tar.xz |
object generation: added mdso_objgen_symfn().
Diffstat (limited to 'include')
-rw-r--r-- | include/mdso/mdso.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/mdso/mdso.h b/include/mdso/mdso.h index c60979a..68676d2 100644 --- a/include/mdso/mdso.h +++ b/include/mdso/mdso.h @@ -49,6 +49,7 @@ enum mdso_custom_error { MDSO_ERR_FLEE_ERROR, MDSO_ERR_NULL_CONTEXT, MDSO_ERR_NULL_SOURCE, + MDSO_ERR_INVALID_DATA, MDSO_ERR_INVALID_CONTEXT, MDSO_ERR_INVALID_SOURCE, MDSO_ERR_SOURCE_SIZE_ZERO, @@ -67,6 +68,16 @@ struct mdso_input { size_t size; }; +struct mdso_object { + void * addr; + size_t size; + void * mapstrs; + uint32_t mapstrsnum; + uint32_t mapstrslen; + uint32_t arhdrpos; + uint32_t arhdrlen; +}; + struct mdso_error_info { const struct mdso_driver_ctx * edctx; const struct mdso_unit_ctx * euctx; @@ -136,6 +147,7 @@ mdso_api uint64_t mdso_crc64_mbstr (const unsigned char * str, size_t * symlen); mdso_api int mdso_asmgen_dsometa (const struct mdso_driver_ctx *, FILE * fout); mdso_api int mdso_asmgen_symentry (const struct mdso_driver_ctx *, const char * sym, FILE * fout); mdso_api int mdso_asmgen_symfn (const struct mdso_driver_ctx *, const char * sym, FILE * fout); +mdso_api int mdso_objgen_symfn (const struct mdso_driver_ctx *, const char * sym, FILE * fout, struct mdso_object *); #ifdef __cplusplus } |