diff options
author | Freya Murphy <freya@freyacat.org> | 2024-09-23 10:13:38 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-09-23 10:13:38 -0400 |
commit | 9d3d75fecbf89ca526b95dd824b15a4d284e05c8 (patch) | |
tree | 969c28f4090595853a9ad863bb3812020b5aecaf /mld/obj.c | |
parent | update readme (diff) | |
download | mips-9d3d75fecbf89ca526b95dd824b15a4d284e05c8.tar.gz mips-9d3d75fecbf89ca526b95dd824b15a4d284e05c8.tar.bz2 mips-9d3d75fecbf89ca526b95dd824b15a4d284e05c8.zip |
fix local vs global symbol names, locals now are local
Diffstat (limited to 'mld/obj.c')
-rw-r--r-- | mld/obj.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)) |