diff options
author | midipix <writeonce@midipix.org> | 2018-08-03 20:56:45 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-08-03 21:13:30 -0400 |
commit | a3e2cfa926e49bb4f63557bd990f83b8f4685734 (patch) | |
tree | 3edaf363a11a1fe1050780de272309ca0ac40db8 /include | |
parent | 18a091990a2de49fb0c9d85b0ae8e86825f2104f (diff) | |
download | mdso-a3e2cfa926e49bb4f63557bd990f83b8f4685734.tar.bz2 mdso-a3e2cfa926e49bb4f63557bd990f83b8f4685734.tar.xz |
library interfaces: object file generation: simplify, re-implement with mmap.
Diffstat (limited to 'include')
-rw-r--r-- | include/mdso/mdso.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/mdso/mdso.h b/include/mdso/mdso.h index a0ecb0e..7927896 100644 --- a/include/mdso/mdso.h +++ b/include/mdso/mdso.h @@ -87,6 +87,7 @@ struct mdso_fd_ctx { }; struct mdso_object { + const char * name; void * addr; size_t size; char * mapstrs; @@ -159,7 +160,7 @@ mdso_api int mdso_set_driver_fdctx (struct mdso_driver_ctx *, const struct /* helper api */ mdso_api FILE*mdso_create_archive (const struct mdso_driver_ctx *, const char * arname); mdso_api int mdso_create_asmsrc (const struct mdso_driver_ctx *, const char * asmname); -mdso_api FILE*mdso_create_object (const struct mdso_driver_ctx *, const char * objname); +mdso_api int mdso_create_object (const struct mdso_driver_ctx *, struct mdso_object *); /* utility api */ mdso_api int mdso_main (int, char **, char **, const struct mdso_fd_ctx *); @@ -185,9 +186,9 @@ mdso_api int mdso_asmgen_dsometa (const struct mdso_driver_ctx *, int); mdso_api int mdso_asmgen_symentry (const struct mdso_driver_ctx *, const char *, int); mdso_api int mdso_asmgen_symfn (const struct mdso_driver_ctx *, const char *, int); -mdso_api int mdso_objgen_dsometa (const struct mdso_driver_ctx *, FILE *, struct mdso_object *); -mdso_api int mdso_objgen_symentry (const struct mdso_driver_ctx *, const char *, FILE *, struct mdso_object *); -mdso_api int mdso_objgen_symfn (const struct mdso_driver_ctx *, const char *, FILE *, struct mdso_object *); +mdso_api int mdso_objgen_dsometa (const struct mdso_driver_ctx *, struct mdso_object *); +mdso_api int mdso_objgen_symentry (const struct mdso_driver_ctx *, const char *, struct mdso_object *); +mdso_api int mdso_objgen_symfn (const struct mdso_driver_ctx *, const char *, struct mdso_object *); mdso_api int mdso_argen_common (const struct mdso_driver_ctx *, const char **, const int *, |