mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
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>
This commit is contained in:
parent
028ecebdd8
commit
4391ed6aa9
1 changed files with 11 additions and 1 deletions
|
@ -727,7 +727,17 @@ int match(const char *sym, const char * const pat[])
|
|||
|
||||
/* sections that we do not want to do full section mismatch check on */
|
||||
static const char *section_white_list[] =
|
||||
{ ".comment*", ".debug*", ".stab*", ".note*", ".got*", ".toc*", NULL };
|
||||
{
|
||||
".comment*",
|
||||
".debug*",
|
||||
".mdebug*", /* alpha, score, mips etc. */
|
||||
".pdr", /* alpha, score, mips etc. */
|
||||
".stab*",
|
||||
".note*",
|
||||
".got*",
|
||||
".toc*",
|
||||
NULL
|
||||
};
|
||||
|
||||
/*
|
||||
* This is used to find sections missing the SHF_ALLOC flag.
|
||||
|
|
Loading…
Reference in a new issue