Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102786312
D37039.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
816 B
Referenced Files
None
Subscribers
None
D37039.diff
View Options
diff --git a/sys/riscv/riscv/elf_machdep.c b/sys/riscv/riscv/elf_machdep.c
--- a/sys/riscv/riscv/elf_machdep.c
+++ b/sys/riscv/riscv/elf_machdep.c
@@ -340,15 +340,25 @@
break;
case R_RISCV_64:
+ error = lookup(lf, symidx, 1, &addr);
+ if (error != 0)
+ return (-1);
+
+ before64 = *where;
+ *where = addr + addend;
+ if (debug_kld)
+ printf("%p %c %-24s %016lx -> %016lx\n", where,
+ (local ? 'l' : 'g'), reloctype_to_str(rtype),
+ before64, *where);
+ break;
+
case R_RISCV_JUMP_SLOT:
error = lookup(lf, symidx, 1, &addr);
if (error != 0)
return (-1);
- val = addr;
before64 = *where;
- if (*where != val)
- *where = val;
+ *where = addr;
if (debug_kld)
printf("%p %c %-24s %016lx -> %016lx\n", where,
(local ? 'l' : 'g'), reloctype_to_str(rtype),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 4:32 AM (21 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14689848
Default Alt Text
D37039.diff (816 B)
Attached To
Mode
D37039: riscv: fix relocation handling for R_RISCV_64
Attached
Detach File
Event Timeline
Log In to Comment