aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mod/modpost.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index d03c9fff5b2a..7e226896579c 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -891,6 +891,8 @@ static int init_section_ref_ok(const char *name)
891 ".pci_fixup_final", 891 ".pci_fixup_final",
892 ".pdr", 892 ".pdr",
893 "__param", 893 "__param",
894 "__ex_table",
895 ".fixup",
894 ".smp_locks", 896 ".smp_locks",
895 ".plt", /* seen on ARCH=um build on x86_64. Harmless */ 897 ".plt", /* seen on ARCH=um build on x86_64. Harmless */
896 NULL 898 NULL
@@ -918,6 +920,8 @@ static int init_section_ref_ok(const char *name)
918 for (s = namelist3; *s; s++) 920 for (s = namelist3; *s; s++)
919 if (strstr(name, *s) != NULL) 921 if (strstr(name, *s) != NULL)
920 return 1; 922 return 1;
923 if (strrcmp(name, ".init") == 0)
924 return 1;
921 return 0; 925 return 0;
922} 926}
923 927
@@ -964,6 +968,8 @@ static int exit_section_ref_ok(const char *name)
964 ".exitcall.exit", 968 ".exitcall.exit",
965 ".eh_frame", 969 ".eh_frame",
966 ".stab", 970 ".stab",
971 "__ex_table",
972 ".fixup",
967 ".smp_locks", 973 ".smp_locks",
968 ".plt", /* seen on ARCH=um build on x86_64. Harmless */ 974 ".plt", /* seen on ARCH=um build on x86_64. Harmless */
969 NULL 975 NULL