summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mdso/mdso.h12
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
}