diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mksysmap | 2 | ||||
-rw-r--r-- | scripts/mod/modpost.c | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/scripts/mksysmap b/scripts/mksysmap index 6e133a0bae7a..c1b6191ef879 100644 --- a/scripts/mksysmap +++ b/scripts/mksysmap | |||
@@ -16,7 +16,7 @@ | |||
16 | # The second row specify the type of the symbol: | 16 | # The second row specify the type of the symbol: |
17 | # A = Absolute | 17 | # A = Absolute |
18 | # B = Uninitialised data (.bss) | 18 | # B = Uninitialised data (.bss) |
19 | # C = Comon symbol | 19 | # C = Common symbol |
20 | # D = Initialised data | 20 | # D = Initialised data |
21 | # G = Initialised data for small objects | 21 | # G = Initialised data for small objects |
22 | # I = Indirect reference to another symbol | 22 | # I = Indirect reference to another symbol |
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 0f84bb38eb0d..68e9f5ed0a6f 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -865,6 +865,11 @@ static void check_section(const char *modname, struct elf_info *elf, | |||
865 | #define ALL_EXIT_TEXT_SECTIONS \ | 865 | #define ALL_EXIT_TEXT_SECTIONS \ |
866 | ".exit.text$", ".devexit.text$", ".cpuexit.text$", ".memexit.text$" | 866 | ".exit.text$", ".devexit.text$", ".cpuexit.text$", ".memexit.text$" |
867 | 867 | ||
868 | #define ALL_PCI_INIT_SECTIONS \ | ||
869 | ".pci_fixup_early$", ".pci_fixup_header$", ".pci_fixup_final$", \ | ||
870 | ".pci_fixup_enable$", ".pci_fixup_resume$", \ | ||
871 | ".pci_fixup_resume_early$", ".pci_fixup_suspend$" | ||
872 | |||
868 | #define ALL_XXXINIT_SECTIONS DEV_INIT_SECTIONS, CPU_INIT_SECTIONS, \ | 873 | #define ALL_XXXINIT_SECTIONS DEV_INIT_SECTIONS, CPU_INIT_SECTIONS, \ |
869 | MEM_INIT_SECTIONS | 874 | MEM_INIT_SECTIONS |
870 | #define ALL_XXXEXIT_SECTIONS DEV_EXIT_SECTIONS, CPU_EXIT_SECTIONS, \ | 875 | #define ALL_XXXEXIT_SECTIONS DEV_EXIT_SECTIONS, CPU_EXIT_SECTIONS, \ |
@@ -1027,6 +1032,12 @@ const struct sectioncheck sectioncheck[] = { | |||
1027 | .mismatch = ANY_EXIT_TO_ANY_INIT, | 1032 | .mismatch = ANY_EXIT_TO_ANY_INIT, |
1028 | .symbol_white_list = { DEFAULT_SYMBOL_WHITE_LIST, NULL }, | 1033 | .symbol_white_list = { DEFAULT_SYMBOL_WHITE_LIST, NULL }, |
1029 | }, | 1034 | }, |
1035 | { | ||
1036 | .fromsec = { ALL_PCI_INIT_SECTIONS, NULL }, | ||
1037 | .tosec = { INIT_SECTIONS, NULL }, | ||
1038 | .mismatch = ANY_INIT_TO_ANY_EXIT, | ||
1039 | .symbol_white_list = { NULL }, | ||
1040 | }, | ||
1030 | /* Do not export init/exit functions or data */ | 1041 | /* Do not export init/exit functions or data */ |
1031 | { | 1042 | { |
1032 | .fromsec = { "__ksymtab*", NULL }, | 1043 | .fromsec = { "__ksymtab*", NULL }, |