forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sven Van Asbroeck
committed
Apr 14, 2021
1 parent
6115fa3
commit 0362cbd
Showing
1 changed file
with
3 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,6 +154,7 @@ quiet_cmd_cc_o_c = CC $(quiet_modtag) $@ | |
cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $< | ||
|
||
ifdef CONFIG_MODVERSIONS | ||
@echo >&2 '*** Why do we have modversions??' | ||
# When module versioning is enabled the following steps are executed: | ||
# o compile a <file>.o from <file>.c | ||
# o if <file>.o doesn't contain a __ksymtab version, i.e. does | ||
|
@@ -167,6 +168,7 @@ ifdef CONFIG_MODVERSIONS | |
# o remove .tmp_<file>.o to <file>.o | ||
|
||
ifdef CONFIG_LTO_CLANG | ||
@echo >&2 '*** CONFIG_LTO_CLANG is set ?!' | ||
# Generate .o.symversions files for each .o with exported symbols, and link these | ||
# to the kernel and/or modules at the end. | ||
cmd_modversions_c = \ | ||
|
@@ -175,6 +177,7 @@ cmd_modversions_c = \ | |
> [email protected]; \ | ||
fi; | ||
else | ||
@echo >&2 '*** CONFIG_LTO_CLANG is NOT set ?!' | ||
cmd_modversions_c = \ | ||
if $(OBJDUMP) -h $@ | grep -q __ksymtab; then \ | ||
$(call cmd_gensymtypes_c,$(KBUILD_SYMTYPES),$(@:.o=.symtypes)) \ | ||
|