Skip to content

Commit 4ae12d8

Browse files
committed
Merge tag 'kbuild-fixes-7.0-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux
Pull Kbuild fixes from Nathan Chancellor: - Split out .modinfo section from ELF_DETAILS macro, as that macro may be used in other areas that expect to discard .modinfo, breaking certain image layouts - Adjust genksyms parser to handle optional attributes in certain declarations, necessary after commit 0791912 ("netfilter: annotate NAT helper hook pointers with __rcu") - Include resolve_btfids in external module build created by scripts/package/install-extmod-build when it may be run on external modules - Avoid removing objtool binary with 'make clean', as it is required for external module builds * tag 'kbuild-fixes-7.0-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux: kbuild: Leave objtool binary around with 'make clean' kbuild: install-extmod-build: Package resolve_btfids if necessary genksyms: Fix parsing a declarator with a preceding attribute kbuild: Split .modinfo out from ELF_DETAILS
2 parents 591d879 + fdb12c8 commit 4ae12d8

31 files changed

Lines changed: 44 additions & 11 deletions

File tree

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,13 +1497,13 @@ ifneq ($(wildcard $(resolve_btfids_O)),)
14971497
$(Q)$(MAKE) -sC $(srctree)/tools/bpf/resolve_btfids O=$(resolve_btfids_O) clean
14981498
endif
14991499

1500-
PHONY += objtool_clean
1500+
PHONY += objtool_clean objtool_mrproper
15011501

15021502
objtool_O = $(abspath $(objtree))/tools/objtool
15031503

1504-
objtool_clean:
1504+
objtool_clean objtool_mrproper:
15051505
ifneq ($(wildcard $(objtool_O)),)
1506-
$(Q)$(MAKE) -sC $(abs_srctree)/tools/objtool O=$(objtool_O) srctree=$(abs_srctree) clean
1506+
$(Q)$(MAKE) -sC $(abs_srctree)/tools/objtool O=$(objtool_O) srctree=$(abs_srctree) $(patsubst objtool_%,%,$@)
15071507
endif
15081508

15091509
tools/: FORCE
@@ -1686,7 +1686,7 @@ PHONY += $(mrproper-dirs) mrproper
16861686
$(mrproper-dirs):
16871687
$(Q)$(MAKE) $(clean)=$(patsubst _mrproper_%,%,$@)
16881688

1689-
mrproper: clean $(mrproper-dirs)
1689+
mrproper: clean objtool_mrproper $(mrproper-dirs)
16901690
$(call cmd,rmfiles)
16911691
@find . $(RCS_FIND_IGNORE) \
16921692
\( -name '*.rmeta' \) \

arch/alpha/kernel/vmlinux.lds.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ SECTIONS
7171

7272
STABS_DEBUG
7373
DWARF_DEBUG
74+
MODINFO
7475
ELF_DETAILS
7576

7677
DISCARDS

arch/arc/kernel/vmlinux.lds.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ SECTIONS
123123
_end = . ;
124124

125125
STABS_DEBUG
126+
MODINFO
126127
ELF_DETAILS
127128
DISCARDS
128129

arch/arm/boot/compressed/vmlinux.lds.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ SECTIONS
2121
COMMON_DISCARDS
2222
*(.ARM.exidx*)
2323
*(.ARM.extab*)
24+
*(.modinfo)
2425
*(.note.*)
2526
*(.rel.*)
2627
*(.printk_index)

arch/arm/kernel/vmlinux-xip.lds.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ SECTIONS
154154

155155
STABS_DEBUG
156156
DWARF_DEBUG
157+
MODINFO
157158
ARM_DETAILS
158159

159160
ARM_ASSERTS

arch/arm/kernel/vmlinux.lds.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ SECTIONS
153153

154154
STABS_DEBUG
155155
DWARF_DEBUG
156+
MODINFO
156157
ARM_DETAILS
157158

158159
ARM_ASSERTS

arch/arm64/kernel/vmlinux.lds.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ SECTIONS
349349

350350
STABS_DEBUG
351351
DWARF_DEBUG
352+
MODINFO
352353
ELF_DETAILS
353354

354355
HEAD_SYMBOLS

arch/csky/kernel/vmlinux.lds.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ SECTIONS
109109

110110
STABS_DEBUG
111111
DWARF_DEBUG
112+
MODINFO
112113
ELF_DETAILS
113114

114115
DISCARDS

arch/hexagon/kernel/vmlinux.lds.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ SECTIONS
6262

6363
STABS_DEBUG
6464
DWARF_DEBUG
65+
MODINFO
6566
ELF_DETAILS
6667
.hexagon.attributes 0 : { *(.hexagon.attributes) }
6768

arch/loongarch/kernel/vmlinux.lds.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ SECTIONS
147147

148148
STABS_DEBUG
149149
DWARF_DEBUG
150+
MODINFO
150151
ELF_DETAILS
151152

152153
#ifdef CONFIG_EFI_STUB

0 commit comments

Comments
 (0)