Patch for "Unknown symbol _GLOBAL_OFFSET_TABLE_"

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium

New Member
Posts: 1
Joined: Thu Feb 01, 2018 11:23 pm

Patch for "Unknown symbol _GLOBAL_OFFSET_TABLE_"

Postby aka » Thu Feb 01, 2018 11:35 pm

Code: Select all

diff -Nurw oss-v4.2-build2017-src-gpl.20180202/setup/srcconf.c oss-v4.2-build2017-src-gpl/setup/srcconf.c
--- oss-v4.2-build2017-src-gpl.20180202/setup/srcconf.c>2017-02-17 14:20:42.000000000 -0500
+++ oss-v4.2-build2017-src-gpl/setup/srcconf.c<>2018-02-01 18:16:56.138166665 -0500
@@ -962,7 +962,7 @@
 #if defined(__SCO_VERSION__)
       fprintf (f, "CFLAGS=-O -D_KERNEL -D_DDI=8\n");
-      fprintf (f, "CFLAGS += -D_KERNEL\n");
+      fprintf (f, "CFLAGS += -D_KERNEL -fno-pic\n");
       add_kernel_flags (f);

And complete diff between code I run with 4.14.16 kernel and oss-v4.2-build2017-src-gpl.tar.bz2
(1.64 KiB) Downloaded 683 times

New Member
Posts: 2
Joined: Sat Mar 03, 2018 5:35 pm
Sound Card: Realtek ALC883
OS: Debian Linux

Re: Patch for "Unknown symbol _GLOBAL_OFFSET_TABLE_"

Postby rberger » Mon Mar 05, 2018 4:59 pm

Thanks for patch. Recently upgraded to Debian Stretch and ran into that issue. They stopped bundling OSS4 with that release, too, so that's why I had to build.

Added -fno-PIE myself, for good measure. Everything's working fine now on 4.9.0-6-686-pae kernel. And robustly so, as per usual.

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 8 guests