cc1: error: code model kernel does not support PIC mode
修改内核的makefile 如下ARCH?= armCROSS_COMPILE?= arm-linux-gnueabihf-# Architecture as present in compile.hUTS_MACHINE:= $(ARCH)SRCARCH:= $(ARCH)和KBUILD_CFLAGS:= -Wall -Wundef -Wstrict-prototypes -Wno-trigra
·
修改内核的makefile 如下
ARCH ?= arm
CROSS_COMPILE ?= arm-linux-gnueabihf-
# Architecture as present in compile.h
UTS_MACHINE := $(ARCH)
SRCARCH := $(ARCH)
和
KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common \
-Werror-implicit-function-declaration \
-Wno-format-security \
-std=gnu89 -fno-pie
更多推荐
已为社区贡献1条内容
所有评论(0)