History

modpost: merge bad_tosec=ALL_EXIT_SECTIONS entries in sectioncheck table

There is no distinction between TEXT_TO_ANY_EXIT and DATA_TO_ANY_EXIT. Just merge them.

Masahiro Yamada committed 3 years ago

Commit abc23971 parent d4323e81 file · +4 −11Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/mod/modpost.c+4−11
@@ -859,8 +859,7 @@ static const char *const optim_symbols[] = { "*.constprop.*", NULL }; · 858 unmodified lines
859enum mismatch {859enum mismatch {
860 TEXT_TO_ANY_INIT,860 TEXT_TO_ANY_INIT,
861 DATA_TO_ANY_INIT,861 DATA_TO_ANY_INIT,
862 TEXT_TO_ANY_EXIT,862 TEXTDATA_TO_ANY_EXIT,
863 DATA_TO_ANY_EXIT,
864 XXXINIT_TO_SOME_INIT,863 XXXINIT_TO_SOME_INIT,
865 XXXEXIT_TO_SOME_EXIT,864 XXXEXIT_TO_SOME_EXIT,
866 ANY_INIT_TO_ANY_EXIT,865 ANY_INIT_TO_ANY_EXIT,
@@ -904,14 +903,9 @@ static const struct sectioncheck sectioncheck[] = { · 37 unmodified lines
904 .mismatch = DATA_TO_ANY_INIT,903 .mismatch = DATA_TO_ANY_INIT,
905},904},
906{905{
907 .fromsec = { TEXT_SECTIONS, NULL },906 .fromsec = { TEXT_SECTIONS, DATA_SECTIONS, NULL },
908 .bad_tosec = { ALL_EXIT_SECTIONS, NULL },
909 .mismatch = TEXT_TO_ANY_EXIT,
910},
911{
912 .fromsec = { DATA_SECTIONS, NULL },
913 .bad_tosec = { ALL_EXIT_SECTIONS, NULL },907 .bad_tosec = { ALL_EXIT_SECTIONS, NULL },
914 .mismatch = DATA_TO_ANY_EXIT,908 .mismatch = TEXTDATA_TO_ANY_EXIT,
915},909},
916/* Do not reference init code/data from meminit code/data */910/* Do not reference init code/data from meminit code/data */
917{911{
@@ -1203,8 +1197,7 @@ static void default_mismatch_handler(const char *modname, struct elf_info *elf, · 285 unmodified lines
1203 switch (mismatch->mismatch) {1197 switch (mismatch->mismatch) {
1204 case TEXT_TO_ANY_INIT:1198 case TEXT_TO_ANY_INIT:
1205 case DATA_TO_ANY_INIT:1199 case DATA_TO_ANY_INIT:
1206 case TEXT_TO_ANY_EXIT:1200 case TEXTDATA_TO_ANY_EXIT:
1207 case DATA_TO_ANY_EXIT:
1208 case XXXINIT_TO_SOME_INIT:1201 case XXXINIT_TO_SOME_INIT:
1209 case XXXEXIT_TO_SOME_EXIT:1202 case XXXEXIT_TO_SOME_EXIT:
1210 case ANY_INIT_TO_ANY_EXIT:1203 case ANY_INIT_TO_ANY_EXIT:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t