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:
Jianping Liu 2024-12-13 20:03:53 +08:00
parent 9a7ce8e353
commit 0e506471b4
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ ps3stor-objs := \
./linux/ps3_dump.o \ ./linux/ps3_dump.o \
./linux/ps3_pcie_err_handle.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 += $(call cc-option, -Wmaybe-uninitialized)
ccflags-y += \ ccflags-y += \
-I$(srctree)/drivers/scsi/linkdata/ps3stor \ -I$(srctree)/drivers/scsi/linkdata/ps3stor \