diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2009-05-04 13:05:26 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-05-04 13:05:26 +0200 |
commit | 4391ed6aa9a38cdfb48addd7a9b24a2ff099b1a7 (patch) | |
tree | 50d5dcda1a5d73c51c8c6e70858f8f276af1c29c /scripts/mod/modpost.c | |
parent | 028ecebdd83cc4a7f8c7e96e28a5537d2ac98dae (diff) | |
download | lwn-4391ed6aa9a38cdfb48addd7a9b24a2ff099b1a7.tar.gz lwn-4391ed6aa9a38cdfb48addd7a9b24a2ff099b1a7.zip |
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>
Diffstat (limited to 'scripts/mod/modpost.c')
-rw-r--r-- | scripts/mod/modpost.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 268d4571664d..161b7846733e 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -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. |