drivers,ps3stor: fix compile error when using allyesconfig config
There is a compile error when run: make allyesconfig && make -j32 The compile error log is as below: ld: error: unplaced orphan section `.GCC.command.line' from `vmlinux.o'. or aarch64-linux-gnu-ld: error: unplaced orphan section `.GCC.command.line' from `drivers/scsi/linkdata/ps3stor/ps3_cmd_channel.o' ...... .GCC.command.line section is created by -frecord-gcc-switches compile option. The info about -frecord-gcc-switches option: This switch causes the command line that was used to invoke the compiler to be recorded into the object file that is being created. This switch is only implemented on some targets and the exact format of the recording is target and binary file format dependent, but it usually takes the form of a section containing ASCII text. -frecord-gcc-switches option is useless in release version, delete it. Signed-off-by: Jianping Liu <frankjpliu@tencent.com> Reviewed-by: Yongliang Gao <leonylgao@tencent.com>
This commit is contained in:
parent
9a7ce8e353
commit
0e506471b4
|
@ -49,7 +49,7 @@ ps3stor-objs := \
|
|||
./linux/ps3_dump.o \
|
||||
./linux/ps3_pcie_err_handle.o
|
||||
|
||||
ccflags-y += -Werror -frecord-gcc-switches
|
||||
ccflags-y += -Werror
|
||||
ccflags-y += $(call cc-option, -Wmaybe-uninitialized)
|
||||
ccflags-y += \
|
||||
-I$(srctree)/drivers/scsi/linkdata/ps3stor \
|
||||
|
|
Loading…
Reference in New Issue