Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'kbuild-fixes-v5.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild

Pull Kbuild fixes from Masahiro Yamada:

- fix build error when compiling SPARC VDSO with CONFIG_COMPAT=y

- pass correct --arch option to Sparse

* tag 'kbuild-fixes-v5.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
kbuild: tell sparse about the $ARCH
sparc: vdso: fix build error of vdso32

+5 -2
+3
Makefile
··· 917 917 LDFLAGS_vmlinux += --pack-dyn-relocs=relr 918 918 endif 919 919 920 + # make the checker run with the right architecture 921 + CHECKFLAGS += --arch=$(ARCH) 922 + 920 923 # insure the checker run with the right endianness 921 924 CHECKFLAGS += $(if $(CONFIG_CPU_BIG_ENDIAN),-mbig-endian,-mlittle-endian) 922 925
+2 -2
arch/sparc/vdso/Makefile
··· 65 65 # 66 66 # vDSO code runs in userspace and -pg doesn't help with profiling anyway. 67 67 # 68 - CFLAGS_REMOVE_vdso-note.o = -pg 69 68 CFLAGS_REMOVE_vclock_gettime.o = -pg 69 + CFLAGS_REMOVE_vdso32/vclock_gettime.o = -pg 70 70 71 71 $(obj)/%.so: OBJCOPYFLAGS := -S 72 72 $(obj)/%.so: $(obj)/%.so.dbg FORCE 73 73 $(call if_changed,objcopy) 74 74 75 - CPPFLAGS_vdso32.lds = $(CPPFLAGS_vdso.lds) 75 + CPPFLAGS_vdso32/vdso32.lds = $(CPPFLAGS_vdso.lds) 76 76 VDSO_LDFLAGS_vdso32.lds = -m elf32_sparc -soname linux-gate.so.1 77 77 78 78 #This makes sure the $(obj) subdirectory exists even though vdso32/