Commit 4391ed6aa9a38cdfb48addd7a9b24a2ff099b1a7
1 parent
028ecebdd8
Exists in
master
and in
4 other branches
kbuild, modpost: fix unexpected non-allocatable warning with mips
mips emit the following debug sections: .mdebug* and .pdr They were included in the check for non-allocatable section and caused modpost to warn. Manuel Lauss suggested to fix this by adding the relevant sections to the list of sections we do not check. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Reported-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Showing 1 changed file with 11 additions and 1 deletions Side-by-side Diff
scripts/mod/modpost.c
... | ... | @@ -727,7 +727,17 @@ |
727 | 727 | |
728 | 728 | /* sections that we do not want to do full section mismatch check on */ |
729 | 729 | static const char *section_white_list[] = |
730 | - { ".comment*", ".debug*", ".stab*", ".note*", ".got*", ".toc*", NULL }; | |
730 | +{ | |
731 | + ".comment*", | |
732 | + ".debug*", | |
733 | + ".mdebug*", /* alpha, score, mips etc. */ | |
734 | + ".pdr", /* alpha, score, mips etc. */ | |
735 | + ".stab*", | |
736 | + ".note*", | |
737 | + ".got*", | |
738 | + ".toc*", | |
739 | + NULL | |
740 | +}; | |
731 | 741 | |
732 | 742 | /* |
733 | 743 | * This is used to find sections missing the SHF_ALLOC flag. |