Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107945271
D26365.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
885 B
Referenced Files
None
Subscribers
None
D26365.diff
View Options
Index: head/stand/common/reloc_elf.c
===================================================================
--- head/stand/common/reloc_elf.c
+++ head/stand/common/reloc_elf.c
@@ -175,7 +175,8 @@
}
return (0);
-#elif defined(__powerpc__)
+#elif defined(__aarch64__) || defined(__arm__) || defined(__powerpc__) || \
+ defined(__riscv)
Elf_Size w;
const Elf_Rela *rela;
@@ -185,7 +186,15 @@
if (relbase + rela->r_offset >= dataaddr &&
relbase + rela->r_offset < dataaddr + len) {
switch (ELF_R_TYPE(rela->r_info)) {
+#if defined(__aarch64__)
+ case R_AARCH64_RELATIVE:
+#elif defined(__arm__)
+ case R_ARM_RELATIVE:
+#elif defined(__powerpc__)
case R_PPC_RELATIVE:
+#elif defined(__riscv)
+ case R_RISCV_RELATIVE:
+#endif
w = relbase + rela->r_addend;
bcopy(&w, (u_char *)data + (relbase +
rela->r_offset - dataaddr), sizeof(w));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 20, 7:50 PM (20 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15982936
Default Alt Text
D26365.diff (885 B)
Attached To
Mode
D26365: stand/reloc_elf: Handle relative relocations for arm{,64} and riscv
Attached
Detach File
Event Timeline
Log In to Comment