There is no distinction between TEXT_TO_ANY_EXIT and DATA_TO_ANY_EXIT. Just merge them.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -859,8 +859,7 @@ static const char *const optim_symbols[] = { "*.constprop.*", NULL }; · 858 unmodified lines | ||
| 859 | 859 | enum mismatch { |
| 860 | 860 | TEXT_TO_ANY_INIT, |
| 861 | 861 | DATA_TO_ANY_INIT, |
| 862 | − TEXT_TO_ANY_EXIT, | |
| 863 | − DATA_TO_ANY_EXIT, | |
| 862 | + TEXTDATA_TO_ANY_EXIT, | |
| 864 | 863 | XXXINIT_TO_SOME_INIT, |
| 865 | 864 | XXXEXIT_TO_SOME_EXIT, |
| 866 | 865 | ANY_INIT_TO_ANY_EXIT, |
| @@ -904,14 +903,9 @@ static const struct sectioncheck sectioncheck[] = { · 37 unmodified lines | ||
| 904 | 903 | .mismatch = DATA_TO_ANY_INIT, |
| 905 | 904 | }, |
| 906 | 905 | { |
| 907 | − .fromsec = { TEXT_SECTIONS, NULL }, | |
| 908 | − .bad_tosec = { ALL_EXIT_SECTIONS, NULL }, | |
| 909 | − .mismatch = TEXT_TO_ANY_EXIT, | |
| 910 | −}, | |
| 911 | −{ | |
| 912 | − .fromsec = { DATA_SECTIONS, NULL }, | |
| 906 | + .fromsec = { TEXT_SECTIONS, DATA_SECTIONS, NULL }, | |
| 913 | 907 | .bad_tosec = { ALL_EXIT_SECTIONS, NULL }, |
| 914 | − .mismatch = DATA_TO_ANY_EXIT, | |
| 908 | + .mismatch = TEXTDATA_TO_ANY_EXIT, | |
| 915 | 909 | }, |
| 916 | 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 | 1197 | switch (mismatch->mismatch) { |
| 1204 | 1198 | case TEXT_TO_ANY_INIT: |
| 1205 | 1199 | case DATA_TO_ANY_INIT: |
| 1206 | − case TEXT_TO_ANY_EXIT: | |
| 1207 | − case DATA_TO_ANY_EXIT: | |
| 1200 | + case TEXTDATA_TO_ANY_EXIT: | |
| 1208 | 1201 | case XXXINIT_TO_SOME_INIT: |
| 1209 | 1202 | case XXXEXIT_TO_SOME_EXIT: |
| 1210 | 1203 | case ANY_INIT_TO_ANY_EXIT: |