Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102664303
D41088.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.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, 1:28 PM (21 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14641952
Default Alt Text
D41088.diff (649 B)
Attached To
Mode
D41088: i386: Switch to PIC kernel modules
Attached
Detach File
Event Timeline
Log In to Comment