https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117049
--- Comment #4 from Akhilesh Kumar <akhilesh.k at samsung dot com> --- (In reply to Andrew Pinski from comment #1) > I am trying to understand the issue here. > > Are you saying the local labels are not removed while assembly and show up > in objdump's output? for risc-v in Objdump local variables are present because these are preset in executable (checked using hexdump) so I think this is not related with objdump > I doubt this is a GCC bug but rather a GNU binutils issue > (https://sourceware.org/bugzilla/ for bugzilla). The local labels for all > elf targets always start with `.L` as far as I know. So riscv binutils not > following the same is a bit odd. even arm and riscv toolchain configurations and module build options are same then also locale labels are present for risc-v, Because of this modules size is getting increased. $ riscv64-unknown-linux-gnu-gcc -Wp,-MMD,drivers/hid/.hid-chicony.o.d -I./arch/riscv/include -I./arch/riscv/include/generated -I./include -I./arch/riscv/include/uapi -I./arch/riscv/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -DMODULE -DKBUILD_BASENAME='"hid_chicony"' -DKBUILD_MODNAME='"hid_chicony"' -D__KBUILD_MODNAME=kmod_hid_chicony -c -o drivers/hid/hid-chicony.o drivers/hid/hid-chicony.c $ grep '<.L*' log | wc 217 1020 9512 $ armv7l-unknown-linux-gnueabi-gcc -Wp,-MD,drivers/hid/.hid-chicony.o.d -nostdinc -isystem /home/akhilesh.k/Toolchains/Toolchain_scripts/WORKSPACE_cross_ARM/standalone_toolchain/cross_toolchain_vd_target_riscv64/bin/../lib/gcc/armv7l-tizen-linux-gnueabi/14.1.0/include -I./arch/arm/include -I./arch/arm/include/generated -I./include -I./arch/arm/include/uapi -I./arch/arm/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -Ikernel/t2ddebugd -Ikernel/t2ddebugd/include -Ikernel/t2ddebugd/include/t2ddebugd -Ikernel/kdebugd -Ikernel/kdebugd/include -Ikernel/kdebugd/include/kdebugd -Ikernel/kdebugd/aop -Ikernel/kdebugd/elf -Ikernel/kdebugd/elf/dem_src -include ./include/linux/compiler_types.h -D__KERNEL__ -I./arch/arm/mach-sdp/include -D__LINUX_ARM_ARCH__=7 -DMODULE -DKBUILD_BASENAME='"hid_chicony"' -DKBUILD_MODNAME='"hid_chicony"' -c -o drivers/hid/hid-chicony.o drivers/hid/hid-chicony.c $ armv7l-unknown-linux-gnueabi-objdump -d drivers/hid/hid-chicony.o | grep ".L"