diff options
author | Freya Murphy <freya@freyacat.org> | 2024-10-04 19:55:38 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-10-04 19:55:38 -0400 |
commit | e470009a16711555ae887fdacec061a7d092df17 (patch) | |
tree | c2ccf49a30e594295fd89fdf3850644988448b86 /mld/link.c | |
parent | make offsets return pc relative reltab entry (diff) | |
download | mips-e470009a16711555ae887fdacec061a7d092df17.tar.gz mips-e470009a16711555ae887fdacec061a7d092df17.tar.bz2 mips-e470009a16711555ae887fdacec061a7d092df17.zip |
update mld,msim with new headers
Diffstat (limited to 'mld/link.c')
-rw-r--r-- | mld/link.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8,9 +8,9 @@ #include <sys/stat.h> #include <melf.h> #include <fcntl.h> +#include <mips32.h> #include "link.h" -#include "mips.h" static int load_objects(struct linker *linker) { @@ -443,7 +443,7 @@ static int relocate_instruction_rela(struct linker *linker, uint32_t sym_vaddr = B32(new_sym->st_value); uint32_t *ins_raw = (uint32_t *) &seg->bytes[off]; - union mips_instruction_data ins; + union mips32_instruction ins; ins.raw = B32(*ins_raw); uint32_t ins_vaddr = seg->new_vaddr + off; |