Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102641676
D41088.id124838.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
649 B
Referenced Files
None
Subscribers
None
D41088.id124838.diff
View Options
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -166,7 +166,7 @@
.endif
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "riscv" || \
- ${MACHINE_CPUARCH} == "powerpc"
+ ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "i386"
CFLAGS+= -fPIC
.endif
diff --git a/sys/i386/i386/elf_machdep.c b/sys/i386/i386/elf_machdep.c
--- a/sys/i386/i386/elf_machdep.c
+++ b/sys/i386/i386/elf_machdep.c
@@ -244,6 +244,7 @@
break;
case R_386_GLOB_DAT: /* S */
+ case R_386_JMP_SLOT: /* S */
error = lookup(lf, symidx, 1, &addr);
if (error != 0)
return (-1);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 5:43 AM (15 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14641952
Default Alt Text
D41088.id124838.diff (649 B)
Attached To
Mode
D41088: i386: Switch to PIC kernel modules
Attached
Detach File
Event Timeline
Log In to Comment