summaryrefslogtreecommitdiff
path: root/mld/obj.c
diff options
context:
space:
mode:
Diffstat (limited to 'mld/obj.c')
-rw-r--r--mld/obj.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mld/obj.c b/mld/obj.c
index 9706371..b065316 100644
--- a/mld/obj.c
+++ b/mld/obj.c
@@ -276,7 +276,7 @@ static int map_file(struct object *obj, char *path)
return M_SUCCESS;
}
-int object_load(struct object *object, char *path)
+int object_load(struct object *object, char *path, uint32_t index)
{
current_file = path;
@@ -286,6 +286,7 @@ int object_load(struct object *object, char *path)
object->strtabs = NULL;
object->mapped = NULL;
object->name = path;
+ object->index = index;
/** load the file */
if (map_file(object, path))