From 9d3d75fecbf89ca526b95dd824b15a4d284e05c8 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 23 Sep 2024 10:13:38 -0400 Subject: fix local vs global symbol names, locals now are local --- mld/obj.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mld/obj.c') 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)) -- cgit v1.2.3-freya