aboutsummaryrefslogtreecommitdiff
path: root/modutils/insmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'modutils/insmod.c')
-rw-r--r--modutils/insmod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c
index 249563435..2b2e3637d 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -981,7 +981,7 @@ arch_apply_relocation(struct obj_file *f,
981 /* dot is the address of the current instruction. 981 /* dot is the address of the current instruction.
982 * v is the target symbol address. 982 * v is the target symbol address.
983 * So we need to extract the offset in the code, 983 * So we need to extract the offset in the code,
984 * adding v, then subtrating the current address 984 * adding v, then subtrating the current address
985 * of this instruction. 985 * of this instruction.
986 * Ex: "IMM 0xFFFE bralid 0x0000" = "bralid 0xFFFE0000" 986 * Ex: "IMM 0xFFFE bralid 0x0000" = "bralid 0xFFFE0000"
987 */ 987 */
@@ -990,7 +990,7 @@ arch_apply_relocation(struct obj_file *f,
990 unsigned int temp = (loc[0] & 0xFFFF) << 16 | 990 unsigned int temp = (loc[0] & 0xFFFF) << 16 |
991 (loc[1] & 0xFFFF); 991 (loc[1] & 0xFFFF);
992 992
993 /* Adjust relative offset. -4 adjustment required 993 /* Adjust relative offset. -4 adjustment required
994 * because dot points to the IMM insn, but branch 994 * because dot points to the IMM insn, but branch
995 * is computed relative to the branch instruction itself. 995 * is computed relative to the branch instruction itself.
996 */ 996 */