[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#841420: fix



As just a data point, when -march=i686, the kernel builds and seems to work well using 6.2.0-10 and with no patches to Makefile at all.

On 10/29/2016 10:24 AM, Oswald Buddenhagen wrote:
-no-pie is not a useful option here, because it's passed to the _linker_
only.

i got it to build with this minimal patch:

--- a/Makefile
+++ b/Makefile
@@ -400,5 +400,5 @@ KBUILD_CFLAGS   := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
                    -Werror-implicit-function-declaration \
                    -Wno-format-security \
-                  -std=gnu89
+                  -std=gnu89 -fno-PIE

  KBUILD_AFLAGS_KERNEL :=



Reply to: